From 55022a566df3d98a543148ce7a0e2eb6773909ae Mon Sep 17 00:00:00 2001 From: Nick Vatamaniuc Date: Tue, 6 Apr 2021 12:26:50 -0400 Subject: [PATCH] Make the default wait timeout infinity (continued) This the continuation of https://github.com/apache/couchdb-erlfdb/pull/22. There, we updated only one `after` clause and forgot the other. The reasoning is the same as before -- make erlfdb behave consistent with other FDB clients which do not have top level client-side timeouts for futures. --- src/erlfdb.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/erlfdb.erl b/src/erlfdb.erl index 8353acd..b0e0714 100644 --- a/src/erlfdb.erl +++ b/src/erlfdb.erl @@ -253,7 +253,7 @@ wait(?IS_FUTURE = Future, Options) -> flush_future_message(Future), Result; false -> - Timeout = erlfdb_util:get(Options, timeout, 5000), + Timeout = erlfdb_util:get(Options, timeout, infinity), {erlfdb_future, MsgRef, _Res} = Future, receive {MsgRef, ready} -> get(Future)