eth/protocols/eth: fix typos in comments (#28652)

This commit is contained in:
Ford 2023-12-12 14:47:59 +01:00 committed by GitHub
parent a3ca1b2818
commit 17c2b3c194
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ var (
// Request is a pending request to allow tracking it and delivering a response // Request is a pending request to allow tracking it and delivering a response
// back to the requester on their chosen channel. // back to the requester on their chosen channel.
type Request struct { type Request struct {
peer *Peer // Peer to which this request belogs for untracking peer *Peer // Peer to which this request belongs for untracking
id uint64 // Request ID to match up replies to id uint64 // Request ID to match up replies to
sink chan *Response // Channel to deliver the response on sink chan *Response // Channel to deliver the response on
@ -224,7 +224,7 @@ func (p *Peer) dispatcher() {
switch { switch {
case res.Req == nil: case res.Req == nil:
// Response arrived with an untracked ID. Since even cancelled // Response arrived with an untracked ID. Since even cancelled
// requests are tracked until fulfilment, a dangling response // requests are tracked until fulfillment, a dangling response
// means the remote peer implements the protocol badly. // means the remote peer implements the protocol badly.
resOp.fail <- errDanglingResponse resOp.fail <- errDanglingResponse

View File

@ -84,7 +84,7 @@ type Peer struct {
txBroadcast chan []common.Hash // Channel used to queue transaction propagation requests txBroadcast chan []common.Hash // Channel used to queue transaction propagation requests
txAnnounce chan []common.Hash // Channel used to queue transaction announcement requests txAnnounce chan []common.Hash // Channel used to queue transaction announcement requests
reqDispatch chan *request // Dispatch channel to send requests and track then until fulfilment reqDispatch chan *request // Dispatch channel to send requests and track then until fulfillment
reqCancel chan *cancel // Dispatch channel to cancel pending requests and untrack them reqCancel chan *cancel // Dispatch channel to cancel pending requests and untrack them
resDispatch chan *response // Dispatch channel to fulfil pending requests and untrack them resDispatch chan *response // Dispatch channel to fulfil pending requests and untrack them