eth/filters: fix comment on PublicFilterAPI timeoutLoop (#22782)
This commit is contained in:
parent
ff75b21f25
commit
f66f1a16b3
@ -72,8 +72,8 @@ func NewPublicFilterAPI(backend Backend, lightMode bool, timeout time.Duration)
|
|||||||
return api
|
return api
|
||||||
}
|
}
|
||||||
|
|
||||||
// timeoutLoop runs every 5 minutes and deletes filters that have not been recently used.
|
// timeoutLoop runs at the interval set by 'timeout' and deletes filters
|
||||||
// Tt is started when the api is created.
|
// that have not been recently used. It is started when the API is created.
|
||||||
func (api *PublicFilterAPI) timeoutLoop(timeout time.Duration) {
|
func (api *PublicFilterAPI) timeoutLoop(timeout time.Duration) {
|
||||||
var toUninstall []*Subscription
|
var toUninstall []*Subscription
|
||||||
ticker := time.NewTicker(timeout)
|
ticker := time.NewTicker(timeout)
|
||||||
|
Loading…
Reference in New Issue
Block a user