Skip to content

Commit 4f2c10e

Browse files
committed
make linter happy
1 parent 661ab5b commit 4f2c10e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

BITSWAP.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,10 @@ Given that a client C wants to fetch data from some server S:
215215
1. If C sends S a Have request for data S has (and is willing to give to C) it should respond with a Have, although it may instead respond with the block itself (e.g. if the block is very small)
216216
1. For each of the items that S sends back Blocks or BlockPresences for they may append any `tokens` they want
217217
2. If C sends S a Have request for data S has but is not currently willing to give to C, S may respond with an `AuthRequired` BlockPresence
218-
1. For each of the items that S sends back Blocks or BlockPresences for they may append any `tokens` they want. Recommended tokens include those that would inform C how they could convince S to give them access to the blocks they want.
219-
2. If C sends S a Have request for data S does not have (or has but is not willing to tell C it has) and C has requested for DontHave responses then S should respond with DontHave
220-
3. S may choose to include the number of bytes that are pending to be sent to C in the response message
221-
4. If C asked for a block that S has but it is bigger than the maximum block size it should return `BlockTooBig`
218+
1. For each of the items that S sends back Blocks or BlockPresences for they may append any `tokens` they want. Recommended tokens include those that would inform C how they could convince S to give them access to the blocks they want.
219+
2. If C sends S a Have request for data S does not have (or has but is not willing to tell C it has) and C has requested for DontHave responses then S should respond with DontHave
220+
3. S may choose to include the number of bytes that are pending to be sent to C in the response message
221+
4. If C asked for a block that S has but it is bigger than the maximum block size it should return `BlockTooBig`
222222
3. When C no longer needs a block it previously asked for it should send a Cancel message for that request to any peers that have not already responded about that particular block. It should particularly send Cancel messages for Block requests (as opposed to Have requests) that have not yet been answered.
223223

224224
### Tokens
@@ -245,14 +245,14 @@ message Message {
245245
246246
message Entry {
247247
bytes block = 1; // CID of the block
248-
int32 priority = 2; // the priority (normalized). default to 1
248+
int32 priority = 2; // the priority (normalized). default to 1
249249
bool cancel = 3; // whether this revokes an entry
250250
WantType wantType = 4; // Note: defaults to enum 0, ie Block
251251
bool sendDontHave = 5; // Note: defaults to false
252252
repeated tokens int32 = 7; // the indices of the tokens in the token list
253-
}
253+
}
254254
255-
repeated Entry entries = 1; // a list of wantlist entries
255+
repeated Entry entries = 1; // a list of wantlist entries
256256
bool full = 2; // whether this is the full wantlist. default to false
257257
}
258258
message Block {
@@ -281,7 +281,7 @@ message Message {
281281
}
282282
```
283283

284-
# Implementations
284+
## Implementations
285285

286286
- <https://github.com/ipfs/go-bitswap>
287287
- <https://github.com/ipfs/js-ipfs-bitswap>

0 commit comments

Comments
 (0)