mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
Move to else, as we otherwise count failed pollers as well
This commit is contained in:
parent
0c149ba78d
commit
06b6bbedf3
@ -159,8 +159,9 @@ func (h *Handler) StartV2Pollers() {
|
||||
)
|
||||
if err != nil {
|
||||
logger.Err(err).Str("user_id", t.UserID).Str("device_id", t.DeviceID).Msg("Failed to start poller")
|
||||
} else {
|
||||
h.updateMetrics()
|
||||
}
|
||||
h.updateMetrics()
|
||||
h.v2Pub.Notify(pubsub.ChanV2, &pubsub.V2InitialSyncComplete{
|
||||
UserID: t.UserID,
|
||||
DeviceID: t.DeviceID,
|
||||
|
Loading…
x
Reference in New Issue
Block a user