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

feat: replace protocol-buffers with protons #16

Merged
merged 1 commit into from
Sep 7, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <[email protected]>",
"Pedro Teixeira <[email protected]>"
]
}
}
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