Skip to content

Commit 7ab3ce0

Browse files
use the correct backoff variable
Signed-off-by: Alexandra Oberaigner <[email protected]>
1 parent 56800b2 commit 7ab3ce0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

providers/flagd/pkg/service/in_process/grpc_sync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ func (g *Sync) Sync(ctx context.Context, dataSync chan<- sync.DataSync) error {
196196
}
197197

198198
// Backoff before retrying
199-
time.Sleep(time.Duration(g.RetryBackOffMs) * time.Millisecond)
199+
time.Sleep(time.Duration(g.RetryBackOffMaxMs) * time.Millisecond)
200200

201201
g.Logger.Warn(fmt.Sprintf("sync cycle failed: %v, retrying...", err))
202202
g.sendEvent(ctx, SyncEvent{event: of.ProviderError})

0 commit comments

Comments
 (0)