Skip to content

Commit 11f5ff7

Browse files
committed
fix: case of protobuf fields
1 parent 7d30c73 commit 11f5ff7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/types/message/message.proto.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ module.exports = `
1515
optional bytes block = 1; // the block cid (cidV0 in bitswap 1.0.0, cidV1 in bitswap 1.1.0)
1616
optional int32 priority = 2; // the priority (normalized). default to 1
1717
optional bool cancel = 3; // whether this revokes an entry
18-
WantType want_type = 4; // Note: defaults to enum 0, ie Block
19-
bool send_dont_have = 5; // Note: defaults to false
18+
WantType wantType = 4; // Note: defaults to enum 0, ie Block
19+
bool sendDontHave = 5; // Note: defaults to false
2020
}
2121
2222
repeated Entry entries = 1; // a list of wantlist entries

test/types/message.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ describe('BitswapMessage', () => {
3636
block: cid.buffer,
3737
priority: 1,
3838
cancel: false,
39-
send_dont_have: false,
40-
want_type: pbm.Message.Wantlist.WantType.Block
39+
sendDontHave: false,
40+
wantType: pbm.Message.Wantlist.WantType.Block
4141
})
4242
})
4343

0 commit comments

Comments
 (0)