Skip to content

Commit

Permalink
publish metric in sub goroutine
Browse files Browse the repository at this point in the history
  • Loading branch information
yabinma committed Jun 25, 2024
1 parent a6534f5 commit 54fb4b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/mqpublish.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ func Checkin(ctx context.Context, wg *sync.WaitGroup) {
}
if Mqclient == nil || !Mqclient.IsConnectionOpen() {
slog.Warn("MQ client is not connected, using fallback checkin for server", config.CurrServer)
callPublishMetrics(true)
go callPublishMetrics(true)
continue
}
callPublishMetrics(false)
go callPublishMetrics(false)
case <-checkinTicker.C:
if config.CurrServer == "" {
continue
Expand Down

0 comments on commit 54fb4b0

Please sign in to comment.