mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-22 03:30:35 +00:00
eth/filters: fix early Unsubscribe of log events (#28769)
This commit is contained in:
parent
07b17f991b
commit
e7fa158086
@ -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…
Reference in New Issue
Block a user