Remove unnecessary conversions
This commit is contained in:
parent
c3e8f6319c
commit
86f562be3a
|
@ -32,7 +32,7 @@ func checkConsulTLSSkipVerify(ctx context.Context, logger *log.Logger, client Ag
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
backoff := (1 << (2 * uint64(i))) * baseline
|
backoff := (1 << (2 * i)) * baseline
|
||||||
if backoff > limit {
|
if backoff > limit {
|
||||||
backoff = limit
|
backoff = limit
|
||||||
} else {
|
} else {
|
||||||
|
@ -42,7 +42,7 @@ func checkConsulTLSSkipVerify(ctx context.Context, logger *log.Logger, client Ag
|
||||||
select {
|
select {
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
return
|
return
|
||||||
case <-time.After(time.Duration(backoff)):
|
case <-time.After(backoff):
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue