Fix storage state
This commit is contained in:
parent
ee789dacb5
commit
442ba2218d
|
@ -31,6 +31,8 @@ func New(path string) (s *Storage, err error) {
|
||||||
kyoto: kyoto,
|
kyoto: kyoto,
|
||||||
counters: make(map[string]*counter),
|
counters: make(map[string]*counter),
|
||||||
}
|
}
|
||||||
|
s.loadState()
|
||||||
|
go s.keepStatePersisted()
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue