Skip to content

Commit 7ef3ecd

Browse files
authored
chore: fix some comments (#650)
Signed-off-by: wangjingcun <[email protected]>
1 parent 8fcd39c commit 7ef3ecd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmd/utils/flags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2144,7 +2144,7 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
21442144
// Since EthProtocolsFlag defines a default value that is the ethconfig.Defaults slice,
21452145
// we can always parse and act on this value whether or not the user sets the flag.
21462146
// Since our logic here will append to the parameterized 'cfg' value ProtocolVersions field,
2147-
// we need to make sure that that value starts empty.
2147+
// we need to make sure that value starts empty.
21482148
cfg.ProtocolVersions = []uint{}
21492149

21502150
seenVersions := map[uint]interface{}{}

eth/handler_eth_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ func testTransactionPropagation(t *testing.T, protocol uint) {
397397
}
398398
// Interconnect all the sink handlers with the source handler
399399
for i, sink := range sinks {
400-
sink := sink // Closure for gorotuine below
400+
sink := sink // Closure for goroutine below
401401

402402
sourcePipe, sinkPipe := p2p.MsgPipe()
403403
defer sourcePipe.Close()
@@ -619,7 +619,7 @@ func testBroadcastBlock(t *testing.T, peers, bcasts int) {
619619
td = source.chain.GetTd(genesis.Hash(), genesis.NumberU64())
620620
)
621621
for i, sink := range sinks {
622-
sink := sink // Closure for gorotuine below
622+
sink := sink // Closure for goroutine below
623623

624624
sourcePipe, sinkPipe := p2p.MsgPipe()
625625
defer sourcePipe.Close()

0 commit comments

Comments
 (0)