Skip to content

Commit

Permalink
bugfix backoff metrics (#1958)
Browse files Browse the repository at this point in the history
Signed-off-by: kpango <[email protected]>
  • Loading branch information
kpango authored Mar 3, 2023
1 parent f4b9404 commit 337a0fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/backoff/backoff.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func (b *backoff) Do(ctx context.Context, f func(ctx context.Context) (val inter
log.Errord("[backoff]\tfor: "+name+",\terror: "+err.Error(), info.Get())
}
// e.g. name = vald.v1.Exists/ip ...etc
if name == "" {
if name != "" {
mu.Lock()
metrics[name] += 1
mu.Unlock()
Expand Down

0 comments on commit 337a0fa

Please sign in to comment.