Skip to content

Commit 5aa3eac

Browse files
jtakalaikaralabe
authored andcommitted
eth/downloader: minor comments cleanup (#15495)
it's -> its pet peeve, and I like to imagine I'm not alone.
1 parent bb57f1f commit 5aa3eac

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

eth/downloader/downloader.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ func (d *Downloader) Synchronise(id string, head common.Hash, td *big.Int, mode
333333
}
334334

335335
// synchronise will select the peer and use it for synchronising. If an empty string is given
336-
// it will use the best peer possible and synchronize if it's TD is higher than our own. If any of the
336+
// it will use the best peer possible and synchronize if its TD is higher than our own. If any of the
337337
// checks fail an error will be returned. This method is synchronous
338338
func (d *Downloader) synchronise(id string, hash common.Hash, td *big.Int, mode SyncMode) error {
339339
// Mock out the synchronisation if testing
@@ -1003,8 +1003,8 @@ func (d *Downloader) fetchParts(errCancel error, deliveryCh chan dataPack, deliv
10031003
return errCancel
10041004

10051005
case packet := <-deliveryCh:
1006-
// If the peer was previously banned and failed to deliver it's pack
1007-
// in a reasonable time frame, ignore it's message.
1006+
// If the peer was previously banned and failed to deliver its pack
1007+
// in a reasonable time frame, ignore its message.
10081008
if peer := d.peers.Peer(packet.PeerId()); peer != nil {
10091009
// Deliver the received chunk of data and check chain validity
10101010
accepted, err := deliver(packet)
@@ -1205,8 +1205,8 @@ func (d *Downloader) processHeaders(origin uint64, td *big.Int) error {
12051205
case <-d.cancelCh:
12061206
}
12071207
}
1208-
// If no headers were retrieved at all, the peer violated it's TD promise that it had a
1209-
// better chain compared to ours. The only exception is if it's promised blocks were
1208+
// If no headers were retrieved at all, the peer violated its TD promise that it had a
1209+
// better chain compared to ours. The only exception is if its promised blocks were
12101210
// already imported by other means (e.g. fecher):
12111211
//
12121212
// R <remote peer>, L <local node>: Both at block 10

0 commit comments

Comments
 (0)