aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjtakalai <juuso.takalainen@streamr.com>2017-11-16 19:14:51 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-11-16 19:14:51 +0800
commit5aa3eac22d80c754d70651a918bccc9b3d1d216f (patch)
tree969e189c554f861b6965fa7b8b0d88a467106bc2
parentbb57f1f1e579a353d4e21368c2217f0462352783 (diff)
downloaddexon-5aa3eac22d80c754d70651a918bccc9b3d1d216f.tar.gz
dexon-5aa3eac22d80c754d70651a918bccc9b3d1d216f.tar.zst
dexon-5aa3eac22d80c754d70651a918bccc9b3d1d216f.zip
eth/downloader: minor comments cleanup (#15495)
it's -> its pet peeve, and I like to imagine I'm not alone.
-rw-r--r--eth/downloader/downloader.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go
index cca4fe7a9..b338129e0 100644
--- a/eth/downloader/downloader.go
+++ b/eth/downloader/downloader.go
@@ -333,7 +333,7 @@ func (d *Downloader) Synchronise(id string, head common.Hash, td *big.Int, mode
}
// synchronise will select the peer and use it for synchronising. If an empty string is given
-// it will use the best peer possible and synchronize if it's TD is higher than our own. If any of the
+// it will use the best peer possible and synchronize if its TD is higher than our own. If any of the
// checks fail an error will be returned. This method is synchronous
func (d *Downloader) synchronise(id string, hash common.Hash, td *big.Int, mode SyncMode) error {
// Mock out the synchronisation if testing
@@ -1003,8 +1003,8 @@ func (d *Downloader) fetchParts(errCancel error, deliveryCh chan dataPack, deliv
return errCancel
case packet := <-deliveryCh:
- // If the peer was previously banned and failed to deliver it's pack
- // in a reasonable time frame, ignore it's message.
+ // If the peer was previously banned and failed to deliver its pack
+ // in a reasonable time frame, ignore its message.
if peer := d.peers.Peer(packet.PeerId()); peer != nil {
// Deliver the received chunk of data and check chain validity
accepted, err := deliver(packet)
@@ -1205,8 +1205,8 @@ func (d *Downloader) processHeaders(origin uint64, td *big.Int) error {
case <-d.cancelCh:
}
}
- // If no headers were retrieved at all, the peer violated it's TD promise that it had a
- // better chain compared to ours. The only exception is if it's promised blocks were
+ // If no headers were retrieved at all, the peer violated its TD promise that it had a
+ // better chain compared to ours. The only exception is if its promised blocks were
// already imported by other means (e.g. fecher):
//
// R <remote peer>, L <local node>: Both at block 10