Skip to content

Commit 17c2b3c

Browse files
eth/protocols/eth: fix typos in comments (#28652)
1 parent a3ca1b2 commit 17c2b3c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

eth/protocols/eth/dispatcher.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ var (
4141
// Request is a pending request to allow tracking it and delivering a response
4242
// back to the requester on their chosen channel.
4343
type Request struct {
44-
peer *Peer // Peer to which this request belogs for untracking
44+
peer *Peer // Peer to which this request belongs for untracking
4545
id uint64 // Request ID to match up replies to
4646

4747
sink chan *Response // Channel to deliver the response on
@@ -224,7 +224,7 @@ func (p *Peer) dispatcher() {
224224
switch {
225225
case res.Req == nil:
226226
// Response arrived with an untracked ID. Since even cancelled
227-
// requests are tracked until fulfilment, a dangling response
227+
// requests are tracked until fulfillment, a dangling response
228228
// means the remote peer implements the protocol badly.
229229
resOp.fail <- errDanglingResponse
230230

eth/protocols/eth/peer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ type Peer struct {
8484
txBroadcast chan []common.Hash // Channel used to queue transaction propagation requests
8585
txAnnounce chan []common.Hash // Channel used to queue transaction announcement requests
8686

87-
reqDispatch chan *request // Dispatch channel to send requests and track then until fulfilment
87+
reqDispatch chan *request // Dispatch channel to send requests and track then until fulfillment
8888
reqCancel chan *cancel // Dispatch channel to cancel pending requests and untrack them
8989
resDispatch chan *response // Dispatch channel to fulfil pending requests and untrack them
9090

0 commit comments

Comments
 (0)