diff --git a/README.md b/README.md index cfdbd27e08e599034f333d5094787a6819176bff..417d87ff341a4639ef6964c76473eb8b66e3649b 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Bitswap is the data trading module for ipfs, it manages requesting and sending blocks to and from other peers in the network. Bitswap has two main jobs, the first is to acquire blocks requested by the client from the network. The second -is to judiciously send blocks in its posession to other peers who want them. +is to judiciously send blocks in its possession to other peers who want them. Bitswap is a message based protocol, as opposed to response-reply. All messages contain wantlists, or blocks. Upon receiving a wantlist, a node should consider @@ -20,7 +20,7 @@ another peer has a task in the peer request queue created for it. The peer request queue is a priority queue that sorts available tasks by some metric, currently, that metric is very simple and aims to fairly address the tasks of each other peer. More advanced decision logic will be implemented in the -future. Task workers pull tasks to be done off of the queue, retreive the block +future. Task workers pull tasks to be done off of the queue, retrieve the block to be sent, and send it off. The number of task workers is limited by a constant factor. diff --git a/bitswap.go b/bitswap.go index 6fcd95570a9fe37e8bde0380149426a9d58f5a67..d016c65924a1ed20c55e7314355a57c6355d0da7 100644 --- a/bitswap.go +++ b/bitswap.go @@ -295,7 +295,7 @@ func (bs *Bitswap) CancelWants(cids []*cid.Cid, ses uint64) { bs.wm.CancelWants(context.Background(), cids, nil, ses) } -// HasBlock announces the existance of a block to this bitswap service. The +// HasBlock announces the existence of a block to this bitswap service. The // service will potentially notify its peers. func (bs *Bitswap) HasBlock(blk blocks.Block) error { return bs.receiveBlockFrom(blk, "") diff --git a/decision/ledger.go b/decision/ledger.go index c4679cd1fb66c6eb890be8df5a8394bea93e7ffa..45cab62202056a75f20129f34f688eb953a3414d 100644 --- a/decision/ledger.go +++ b/decision/ledger.go @@ -24,7 +24,7 @@ type ledger struct { // Partner is the remote Peer. Partner peer.ID - // Accounting tracks bytes sent and recieved. + // Accounting tracks bytes sent and received. Accounting debtRatio // lastExchange is the time of the last data exchange.