Skip to content

Commit

Permalink
update message.proto
Browse files Browse the repository at this point in the history
Add some comments so that I don't forget about these

License: MIT
Signed-off-by: David Dias [email protected]
  • Loading branch information
daviddias committed Dec 7, 2016
1 parent 24d35f3 commit 17b732a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions exchange/bitswap/message/pb/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@ message Message {
message Wantlist {

message Entry {
optional string block = 1; // the block key
optional int32 priority = 2; // the priority (normalized). default to 1
optional bool cancel = 3; // whether this revokes an entry
optional string 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
}

repeated Entry entries = 1; // a list of wantlist entries
optional bool full = 2; // whether this is the full wantlist. default to false
repeated Entry entries = 1; // a list of wantlist entries
optional bool full = 2; // whether this is the full wantlist. default to false
}

message Block {
optional bytes prefix = 1;
optional bytes data = 2;
optional bytes prefix = 1; // CID prefix (cid version, multicodec and multihash prefix (type + length)
optional bytes data = 2;
}

optional Wantlist wantlist = 1;
repeated bytes blocks = 2;
repeated Block payload = 3;
repeated bytes blocks = 2; // used to send Blocks in bitswap 1.0.0
repeated Block payload = 3; // used to send Blocks in bitswap 1.1.0
}

1 comment on commit 17b732a

@GitCop
Copy link

@GitCop GitCop commented on 17b732a Dec 7, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There were the following issues with your Pull Request

We ask for a few features in the commit message for Open Source licensing hygiene and commit message clarity.
git commit --amend can often help you quickly improve the commit message.
Guidelines and a script are available to help in the long run.
Your feedback on GitCop is welcome on this issue.


This message was auto-generated by https://gitcop.com

Please sign in to comment.