mirror of
https://github.com/multipleof4/ntfy.git
synced 2026-10-17 08:57:55 +00:00
Remove goroutine
This commit is contained in:
+3
-5
@@ -2327,9 +2327,7 @@ func (s *Server) updateAndWriteStats(messagesCount int64) {
|
|||||||
s.messagesHistory = s.messagesHistory[1:]
|
s.messagesHistory = s.messagesHistory[1:]
|
||||||
}
|
}
|
||||||
s.mu.Unlock()
|
s.mu.Unlock()
|
||||||
go func() {
|
if err := s.messageCache.UpdateStats(messagesCount); err != nil {
|
||||||
if err := s.messageCache.UpdateStats(messagesCount); err != nil {
|
log.Tag(tagManager).Err(err).Warn("Cannot write messages stats")
|
||||||
log.Tag(tagManager).Err(err).Warn("Cannot write messages stats")
|
}
|
||||||
}
|
|
||||||
}()
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user