update write epoch in the background every second

This commit is contained in:
vyzo 2021-06-17 13:47:56 +03:00
parent 66f1630f14
commit 933c786421

View File

@ -505,7 +505,7 @@ func (s *SplitStore) updateWriteEpoch() {
}
func (s *SplitStore) background() {
ticker := time.NewTicker(time.Duration(builtin.EpochDurationSeconds) * time.Second)
ticker := time.NewTicker(time.Second)
defer ticker.Stop()
for {