From 21e1da33a33a54a87c63ab4460e4ddff7cbb352e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Mon, 19 Mar 2018 03:41:28 +0100 Subject: [PATCH] misc: Fix a few typos MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit License: MIT Signed-off-by: Ɓukasz Magiera --- README.md | 4 ++-- bitswap.go | 2 +- decision/ledger.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cfdbd27..417d87f 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 154b6c4..4fcb717 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 c4679cd..45cab62 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. -- GitLab