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 (#215) (#217)

Signed-off-by: Gaurav Bafna <[email protected]>
  • Loading branch information
gbbafna authored Oct 27, 2021
1 parent 396ee3b commit ee6b6c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ suspend fun ClusterStateObserver.waitForNextChange(reason: String, predicate: (C
override fun onTimeout(timeout: TimeValue?) {
cont.resumeWithException(ElasticsearchTimeoutException("timed out waiting for $reason"))
}
}, predicate)
}, predicate, TimeValue(60000))
}
}

Expand Down

0 comments on commit ee6b6c2

Please sign in to comment.