eth/filters: use buffered channel to avoid goroutine leak (#24928)

pull/24997/head
Boqin Qin(秦 伯钦) 3 years ago committed by GitHub
parent 2140aabf53
commit 03157b6efa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      eth/filters/filter_system_test.go

@ -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…
Cancel
Save