Skip to content

Commit

Permalink
bugfix(syncer): fix misplaced function parameters in wait.PollUntilCo…
Browse files Browse the repository at this point in the history
…ntextTimeout function in nodeChanges server filter
  • Loading branch information
neogopher committed Feb 4, 2025
1 parent 01316a8 commit 6f38255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/filters/nodechanges.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func updateNode(ctx context.Context, decoder encoding.Decoder, localClient clien
}

// now let's wait for the virtual node to update
err = wait.PollUntilContextTimeout(ctx, time.Second*4, time.Millisecond*200, true, func(ctx context.Context) (bool, error) {
err = wait.PollUntilContextTimeout(ctx, time.Millisecond*200, time.Second*4, true, func(ctx context.Context) (bool, error) {
updatedNode := &corev1.Node{}
err := virtualClient.Get(ctx, client.ObjectKey{Name: vNode.Name}, updatedNode)
if err != nil {
Expand Down

0 comments on commit 6f38255

Please sign in to comment.