Skip to content

Commit

Permalink
fix: case of protobuf fields
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkmc committed Jan 10, 2020
1 parent 7d30c73 commit 11f5ff7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/types/message/message.proto.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ module.exports = `
optional bytes block = 1; // the block cid (cidV0 in bitswap 1.0.0, cidV1 in bitswap 1.1.0)
optional int32 priority = 2; // the priority (normalized). default to 1
optional bool cancel = 3; // whether this revokes an entry
WantType want_type = 4; // Note: defaults to enum 0, ie Block
bool send_dont_have = 5; // Note: defaults to false
WantType wantType = 4; // Note: defaults to enum 0, ie Block
bool sendDontHave = 5; // Note: defaults to false
}
repeated Entry entries = 1; // a list of wantlist entries
Expand Down
4 changes: 2 additions & 2 deletions test/types/message.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ describe('BitswapMessage', () => {
block: cid.buffer,
priority: 1,
cancel: false,
send_dont_have: false,
want_type: pbm.Message.Wantlist.WantType.Block
sendDontHave: false,
wantType: pbm.Message.Wantlist.WantType.Block
})
})

Expand Down

0 comments on commit 11f5ff7

Please sign in to comment.