good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 47f7c736 authored by ucwong's avatar ucwong Committed by GitHub
Browse files

eth/filters: add missing Ticker.Stop call (#20862)

parent 228a2970
No related branches found
No related tags found
No related merge requests found
...@@ -78,6 +78,7 @@ func NewPublicFilterAPI(backend Backend, lightMode bool) *PublicFilterAPI { ...@@ -78,6 +78,7 @@ func NewPublicFilterAPI(backend Backend, lightMode bool) *PublicFilterAPI {
// Tt is started when the api is created. // Tt is started when the api is created.
func (api *PublicFilterAPI) timeoutLoop() { func (api *PublicFilterAPI) timeoutLoop() {
ticker := time.NewTicker(5 * time.Minute) ticker := time.NewTicker(5 * time.Minute)
defer ticker.Stop()
for { for {
<-ticker.C <-ticker.C
api.filtersMu.Lock() api.filtersMu.Lock()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment