Skip to content

Commit f66f1a1

Browse files
eth/filters: fix comment on PublicFilterAPI timeoutLoop (#22782)
1 parent ff75b21 commit f66f1a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eth/filters/api.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ func NewPublicFilterAPI(backend Backend, lightMode bool, timeout time.Duration)
7272
return api
7373
}
7474

75-
// timeoutLoop runs every 5 minutes and deletes filters that have not been recently used.
76-
// Tt is started when the api is created.
75+
// timeoutLoop runs at the interval set by 'timeout' and deletes filters
76+
// that have not been recently used. It is started when the API is created.
7777
func (api *PublicFilterAPI) timeoutLoop(timeout time.Duration) {
7878
var toUninstall []*Subscription
7979
ticker := time.NewTicker(timeout)

0 commit comments

Comments
 (0)