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 (#2471)

(cherry picked from commit 6e3d4ce)

Co-authored-by: neogopher <[email protected]>
  • Loading branch information
loft-bot and neogopher authored Feb 13, 2025
1 parent 535da44 commit 1b00921
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 @@ -164,7 +164,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 1b00921

Please sign in to comment.