fix(backend/storage): fixed ts of last processed session in logs

This commit is contained in:
Alexander Zavorotynskiy 2022-06-02 10:27:32 +02:00
parent 2cadf12f88
commit 485865f704

View file

@ -40,7 +40,7 @@ func main() {
case *messages.SessionEnd:
srv.UploadKey(strconv.FormatUint(sessionID, 10), 5)
// Log timestamp of last processed session
counter.Update(time.UnixMilli(msg.Meta().Timestamp))
counter.Update(time.UnixMilli(meta.Timestamp))
}
},
true,
@ -62,7 +62,7 @@ func main() {
case <-cleanTick:
go srv.CleanDir(cfg.FSDir)
case <-counterTick:
counter.Print()
go counter.Print()
default:
err := consumer.ConsumeNext()
if err != nil {