Skip to content

Commit

Permalink
refactor: enhance code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Tochemey committed Feb 20, 2025
1 parent 43946e0 commit 1065009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actor/cluster_singleton.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (x *actorSystem) spawnSingletonOnLeader(ctx context.Context, cl cluster.Int

// this is expected to be quick
retrier := retry.NewRetrier(3, 100*time.Millisecond, 300*time.Millisecond)
err = retrier.RunContext(ctx, func(ctx context.Context) error {
err = retrier.RunContext(ctx, func(context.Context) error {
peerState, err = x.getPeerStateFromStore(leader.PeerAddress())
if err != nil {
if errors.Is(err, ErrPeerNotFound) {
Expand Down

0 comments on commit 1065009

Please sign in to comment.