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

pull/20866/head
ucwong 5 years ago committed by GitHub
parent 228a297056
commit 47f7c736cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      eth/filters/api.go

@ -78,6 +78,7 @@ func NewPublicFilterAPI(backend Backend, lightMode bool) *PublicFilterAPI {
// Tt is started when the api is created.
func (api *PublicFilterAPI) timeoutLoop() {
ticker := time.NewTicker(5 * time.Minute)
defer ticker.Stop()
for {
<-ticker.C
api.filtersMu.Lock()

Loading…
Cancel
Save