Skip to content

Commit 54bf147

Browse files
authored
fix getlogs deadlock (#2127)
* bump sei-cosmos to v0.3.57 * Fix getLogs deadlock
1 parent 113686b commit 54bf147

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

evmrpc/filter.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,10 @@ func (f *LogFetcher) GetLogsByFilters(ctx context.Context, crit filters.FilterCr
305305
}
306306
}
307307
close(runner.Queue)
308-
runner.Done.Wait()
309-
close(resultsChan)
308+
go func() {
309+
runner.Done.Wait()
310+
close(resultsChan)
311+
}()
310312

311313
// Aggregate results into the final slice
312314
for result := range resultsChan {

0 commit comments

Comments
 (0)