From 03638e5b82380d9bdfb72e0ee2d9472807064841 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Mon, 17 Mar 2025 15:39:40 +0100 Subject: [PATCH] eth/filters: simplify loop --- eth/filters/filter_system_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/filters/filter_system_test.go b/eth/filters/filter_system_test.go index 4799cf8d4c..d84a30b229 100644 --- a/eth/filters/filter_system_test.go +++ b/eth/filters/filter_system_test.go @@ -607,7 +607,7 @@ func TestPendingTxFilterDeadlock(t *testing.T) { // Create a bunch of filters that will // timeout either in 100ms or 200ms subs := make([]*Subscription, 20) - for i := 0; i < len(subs); i++ { + for i := range subs { fid := api.NewPendingTransactionFilter(nil) api.filtersMu.Lock() f, ok := api.filters[fid]