mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-07 03:45:02 +00:00
eth/filters: use buffered channel to avoid goroutine leak (#24928)
This commit is contained in:
parent
2140aabf53
commit
03157b6efa
1 changed files with 1 additions and 1 deletions
|
|
@ -592,7 +592,7 @@ func TestPendingLogsSubscription(t *testing.T) {
|
|||
// (some) events are posted.
|
||||
for i := range testCases {
|
||||
testCases[i].c = make(chan []*types.Log)
|
||||
testCases[i].err = make(chan error)
|
||||
testCases[i].err = make(chan error, 1)
|
||||
|
||||
var err error
|
||||
testCases[i].sub, err = api.events.SubscribeLogs(testCases[i].crit, testCases[i].c)
|
||||
|
|
|
|||
Loading…
Reference in a new issue