Skip to content

Commit

Permalink
Merge branch 'master' into fix-label-leak
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot[bot] authored Oct 16, 2024
2 parents 5de15e8 + 48db925 commit 1324449
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/syncer/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,10 @@ func (s *RegionSyncer) StartSyncWithLeader(addr string) {
log.Info("region syncer start load region")
start := time.Now()
err := storage.TryLoadRegionsOnce(ctx, regionStorage, bc.CheckAndPutRegion)
log.Info("region syncer finished load regions", zap.Duration("time-cost", time.Since(start)))
if err != nil {
log.Warn("failed to load regions", errs.ZapError(err))
log.Warn("region syncer failed to load regions", errs.ZapError(err), zap.Duration("time-cost", time.Since(start)))
} else {
log.Info("region syncer finished load regions", zap.Duration("time-cost", time.Since(start)))
}
// establish client.
conn := grpcutil.CreateClientConn(ctx, addr, s.tlsConfig,
Expand Down

0 comments on commit 1324449

Please sign in to comment.