all: remove duplicate word in comments (#1570)

This commit is contained in:
Daniel Liu 2025-09-24 07:57:33 +08:00 committed by GitHub
parent 8d16201f0f
commit 294591e67e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View file

@ -494,7 +494,7 @@ var (
} }
HTTPPathPrefixFlag = &cli.StringFlag{ HTTPPathPrefixFlag = &cli.StringFlag{
Name: "http-rpcprefix", Name: "http-rpcprefix",
Usage: "HTTP path path prefix on which JSON-RPC is served. Use '/' to serve on all paths.", Usage: "HTTP path prefix on which JSON-RPC is served. Use '/' to serve on all paths.",
Value: "", Value: "",
Category: flags.APICategory, Category: flags.APICategory,
} }

View file

@ -392,7 +392,7 @@ func (m *Matcher) distributor(dist chan *request, session *MatcherSession) {
shutdown = session.quit // Shutdown request channel, will gracefully wait for pending requests shutdown = session.quit // Shutdown request channel, will gracefully wait for pending requests
) )
// assign is a helper method fo try to assign a pending bit an an actively // assign is a helper method fo try to assign a pending bit an actively
// listening servicer, or schedule it up for later when one arrives. // listening servicer, or schedule it up for later when one arrives.
assign := func(bit uint) { assign := func(bit uint) {
select { select {

View file

@ -40,7 +40,7 @@ type unconfirmedBlock struct {
} }
// unconfirmedBlocks implements a data structure to maintain locally mined blocks // unconfirmedBlocks implements a data structure to maintain locally mined blocks
// have have not yet reached enough maturity to guarantee chain inclusion. It is // have not yet reached enough maturity to guarantee chain inclusion. It is
// used by the miner to provide logs to the user when a previously mined block // used by the miner to provide logs to the user when a previously mined block
// has a high enough guarantee to not be reorged out of the canonical chain. // has a high enough guarantee to not be reorged out of the canonical chain.
type unconfirmedBlocks struct { type unconfirmedBlocks struct {

View file

@ -30,7 +30,7 @@ const (
EventTypeNode EventType = "node" EventTypeNode EventType = "node"
// EventTypeConn is the type of event emitted when a connection is // EventTypeConn is the type of event emitted when a connection is
// is either established or dropped between two nodes // either established or dropped between two nodes
EventTypeConn EventType = "conn" EventTypeConn EventType = "conn"
// EventTypeMsg is the type of event emitted when a p2p message it // EventTypeMsg is the type of event emitted when a p2p message it