Skip to content

Commit

Permalink
PollImmediate in update endpoint (#244)
Browse files Browse the repository at this point in the history
* PollImmediate in update endpoint

* test

* wip

* wip
  • Loading branch information
piotrmiskiewicz authored Dec 23, 2023
1 parent 128f037 commit 9601a04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/broker/instance_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ func (b *UpdateEndpoint) processUpdateParameters(instance *internal.Instance, de
instance.Parameters.Parameters.MachineType = params.MachineType
}
if len(updateStorage) > 0 {
if err := wait.Poll(500*time.Millisecond, 2*time.Second, func() (bool, error) {
if err := wait.PollImmediate(500*time.Millisecond, 2*time.Second, func() (bool, error) {
instance, err = b.instanceStorage.Update(*instance)
if err != nil {
params := strings.Join(updateStorage, ", ")
Expand Down

0 comments on commit 9601a04

Please sign in to comment.