Skip to content

Commit

Permalink
Using time out in cluster state observer as we are reusing the observ…
Browse files Browse the repository at this point in the history
…er (opensearch-project#215)

Signed-off-by: Gaurav Bafna <[email protected]>
  • Loading branch information
gbbafna committed Oct 27, 2021
1 parent afcde64 commit 08bdce7
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 08bdce7

Please sign in to comment.