Commit 1519a59c authored by Thomas Gardner's avatar Thomas Gardner

trivial: various superficial fixes

misc/completion/ipfs-completion.bash: add `ipfs stats` to BASH completion

core/commands/mount_unix.go: ensure error is not nil before printing it

contribute.md: fix bibliography indexing in example

core/commands/swarm.go: change tabs to spaces in USAGE message

*: 80-column readability improvements

License: MIT
Signed-off-by: default avatarThomas Gardner <tmg@fastmail.com>
parent 48d92d8b
...@@ -21,7 +21,8 @@ import ( ...@@ -21,7 +21,8 @@ import (
// batches/combines and takes all of these into consideration. // batches/combines and takes all of these into consideration.
// //
// Right now, messages go onto the network for four reasons: // Right now, messages go onto the network for four reasons:
// 1. an initial `sendwantlist` message to a provider of the first key in a request // 1. an initial `sendwantlist` message to a provider of the first key in a
// request
// 2. a periodic full sweep of `sendwantlist` messages to all providers // 2. a periodic full sweep of `sendwantlist` messages to all providers
// 3. upon receipt of blocks, a `cancel` message to all peers // 3. upon receipt of blocks, a `cancel` message to all peers
// 4. draining the priority queue of `blockrequests` from peers // 4. draining the priority queue of `blockrequests` from peers
...@@ -34,9 +35,10 @@ import ( ...@@ -34,9 +35,10 @@ import (
// Some examples of what would be possible: // Some examples of what would be possible:
// //
// * when sending out the wantlists, include `cancel` requests // * when sending out the wantlists, include `cancel` requests
// * when handling `blockrequests`, include `sendwantlist` and `cancel` as appropriate // * when handling `blockrequests`, include `sendwantlist` and `cancel` as
// appropriate
// * when handling `cancel`, if we recently received a wanted block from a // * when handling `cancel`, if we recently received a wanted block from a
// peer, include a partial wantlist that contains a few other high priority // peer, include a partial wantlist that contains a few other high priority
// blocks // blocks
// //
// In a sense, if we treat the decision engine as a black box, it could do // In a sense, if we treat the decision engine as a black box, it could do
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment