Skip to content

Commit e85611f

Browse files
envestccdustinxie
authored andcommittedMar 22, 2024
use buffered channel (#4197)
1 parent e9d8a95 commit e85611f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎actpool/actpool.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ func (ap *actPool) context(ctx context.Context) context.Context {
436436
}
437437

438438
func (ap *actPool) enqueue(ctx context.Context, act *action.SealedEnvelope, replace bool) error {
439-
var errChan = make(chan error) // unused errChan will be garbage-collected
439+
var errChan = make(chan error, 1) // unused errChan will be garbage-collected
440440
ap.jobQueue[ap.allocatedWorker(act.SenderAddress())] <- workerJob{
441441
ctx,
442442
act,

0 commit comments

Comments
 (0)