Skip to content

Commit

Permalink
fix PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kutluhanmetin committed Sep 4, 2023
1 parent 5f5493a commit aa90444
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/commands/migration/stages.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ func (st *Stages) migrateStage(ctx context.Context) func(statuser stage.Statuser
}

func (st *Stages) waitForStatus(ctx context.Context, waitInterval time.Duration, targetStatuses ...status) error {
timeoutErr := fmt.Errorf("migration could not be completed: reached timeout while reading status: " +
"please ensure that you are using Hazelcast's migration cluster distribution and your DMT config points to that cluster")
for {
timeoutErr := fmt.Errorf("migration could not be completed: reached timeout while reading status: " +
"please ensure that you are using Hazelcast's migration cluster distribution and your DMT config points to that cluster")
if err := ctx.Err(); err != nil && errors.Is(err, context.DeadlineExceeded) {
return timeoutErr
}
Expand Down

0 comments on commit aa90444

Please sign in to comment.