eth/filters: fix early Unsubscribe of log events (#28769)

pull/28780/head
ucwong 10 months ago committed by GitHub
parent 07b17f991b
commit e7fa158086
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      eth/filters/api.go

@ -266,9 +266,9 @@ func (api *FilterAPI) Logs(ctx context.Context, crit FilterCriteria) (*rpc.Subsc
if err != nil {
return nil, err
}
defer logsSub.Unsubscribe()
go func() {
defer logsSub.Unsubscribe()
for {
select {
case logs := <-matchedLogs:

Loading…
Cancel
Save