Move to else, as we otherwise count failed pollers as well

This commit is contained in:
Till Faelligen 2023-09-22 09:44:52 +02:00
parent 0c149ba78d
commit 06b6bbedf3
No known key found for this signature in database
GPG Key ID: ACCDC9606D472758

View File

@ -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,