Skip to content

Commit

Permalink
chore: fix some comments
Browse files Browse the repository at this point in the history
Signed-off-by: wangjingcun <[email protected]>
  • Loading branch information
wangjingcun committed Nov 9, 2024
1 parent 8fcd39c commit c5d0bac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -2144,7 +2144,7 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
// Since EthProtocolsFlag defines a default value that is the ethconfig.Defaults slice,
// we can always parse and act on this value whether or not the user sets the flag.
// Since our logic here will append to the parameterized 'cfg' value ProtocolVersions field,
// we need to make sure that that value starts empty.
// we need to make sure that value starts empty.
cfg.ProtocolVersions = []uint{}

seenVersions := map[uint]interface{}{}
Expand Down
4 changes: 2 additions & 2 deletions eth/handler_eth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ func testTransactionPropagation(t *testing.T, protocol uint) {
}
// Interconnect all the sink handlers with the source handler
for i, sink := range sinks {
sink := sink // Closure for gorotuine below
sink := sink // Closure for goroutine below

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

sourcePipe, sinkPipe := p2p.MsgPipe()
defer sourcePipe.Close()
Expand Down

0 comments on commit c5d0bac

Please sign in to comment.