Skip to content

Commit 47f7c73

Browse files
authored
eth/filters: add missing Ticker.Stop call (#20862)
1 parent 228a297 commit 47f7c73

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

eth/filters/api.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ func NewPublicFilterAPI(backend Backend, lightMode bool) *PublicFilterAPI {
7878
// Tt is started when the api is created.
7979
func (api *PublicFilterAPI) timeoutLoop() {
8080
ticker := time.NewTicker(5 * time.Minute)
81+
defer ticker.Stop()
8182
for {
8283
<-ticker.C
8384
api.filtersMu.Lock()

0 commit comments

Comments
 (0)