Skip to content

Commit

Permalink
eth/tracer: use blocked channel
Browse files Browse the repository at this point in the history
  • Loading branch information
rjl493456442 committed Jun 29, 2022
1 parent f43ad3c commit fef79d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/tracers/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ func (api *API) traceChain(start, end *types.Block, config *TraceConfig, closed
}()

// Keep reading the trace results and stream them to result channel.
retCh := make(chan *blockTraceResult, 1024)
retCh := make(chan *blockTraceResult)
go func() {
defer close(retCh)
var (
Expand Down

0 comments on commit fef79d0

Please sign in to comment.