Răsfoiți Sursa

eth/filters: fix comment on PublicFilterAPI timeoutLoop (#22782)

aaronbuchwald 4 ani în urmă
părinte
comite
f66f1a16b3
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      eth/filters/api.go

+ 2 - 2
eth/filters/api.go

@@ -72,8 +72,8 @@ func NewPublicFilterAPI(backend Backend, lightMode bool, timeout time.Duration)
 	return api
 }
 
-// timeoutLoop runs every 5 minutes and deletes filters that have not been recently used.
-// Tt is started when the api is created.
+// timeoutLoop runs at the interval set by 'timeout' and deletes filters
+// that have not been recently used. It is started when the API is created.
 func (api *PublicFilterAPI) timeoutLoop(timeout time.Duration) {
 	var toUninstall []*Subscription
 	ticker := time.NewTicker(timeout)