Skip to content

Commit

Permalink
Using time out in cluster state observer as we are reusing the observer
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Bafna <[email protected]>
  • Loading branch information
gbbafna committed Oct 27, 2021
1 parent 12fe6b5 commit 27c3d52
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ suspend fun ClusterStateObserver.waitForNextChange(reason: String, predicate: (C
override fun onTimeout(timeout: TimeValue?) {
cont.resumeWithException(OpenSearchTimeoutException("timed out waiting for $reason"))
}
}, predicate)
}, predicate, TimeValue(60000))
}
}

Expand Down

0 comments on commit 27c3d52

Please sign in to comment.