mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-15 20:46:40 +00:00
eth/filters: add missing Ticker.Stop call (#20862)
This commit is contained in:
parent
228a297056
commit
47f7c736cb
1 changed files with 1 additions and 0 deletions
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue