Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Commit

Permalink
feat: replace protocol-buffers with protons
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Sep 7, 2017
1 parent e8ff69d commit c54e0a1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ test/test-data/go-ipfs-repo/LOG.old

# while testing npm5
package-lock.json
yarn.lock
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"peer-id": "~0.10.0",
"peer-info": "~0.11.0",
"priorityqueue": "^0.2.0",
"protocol-buffers": "^3.2.1",
"protons": "^1.0.0",
"pull-length-prefixed": "^1.3.0",
"pull-stream": "^3.6.0",
"safe-buffer": "^5.1.1",
Expand Down Expand Up @@ -83,4 +83,4 @@
"Friedel Ziegelmayer <dignifiedquire@gmail.com>",
"Pedro Teixeira <i@pgte.me>"
]
}
}
4 changes: 2 additions & 2 deletions src/message/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
const assert = require('assert')
const PeerInfo = require('peer-info')
const PeerId = require('peer-id')
const protobuf = require('protocol-buffers')
const protons = require('protons')
const Record = require('libp2p-record').Record

const pbm = protobuf(require('./dht.proto'))
const pbm = protons(require('./dht.proto'))

const MESSAGE_TYPE = pbm.Message.MessageType
const CONNECTION_TYPE = pbm.Message.ConnectionType
Expand Down

0 comments on commit c54e0a1

Please sign in to comment.