1
0
Fork 0

Fix storage state

This commit is contained in:
Gregory Eremin 2015-01-27 13:56:57 +07:00
parent ee789dacb5
commit 442ba2218d
1 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,8 @@ func New(path string) (s *Storage, err error) {
kyoto: kyoto,
counters: make(map[string]*counter),
}
s.loadState()
go s.keepStatePersisted()
return
}