You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2021/04/06 17:01:53 UTC
[couchdb-erlfdb] branch main updated: Make the default wait timeout
infinity (continued)
This is an automated email from the ASF dual-hosted git repository.
vatamane pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb-erlfdb.git
The following commit(s) were added to refs/heads/main by this push:
new 55022a5 Make the default wait timeout infinity (continued)
55022a5 is described below
commit 55022a566df3d98a543148ce7a0e2eb6773909ae
Author: Nick Vatamaniuc <va...@gmail.com>
AuthorDate: Tue Apr 6 12:26:50 2021 -0400
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)