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 16:36:44 UTC
[couchdb-erlfdb] 01/01: 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 make-default-timeout-infinity
in repository https://gitbox.apache.org/repos/asf/couchdb-erlfdb.git
commit 1a485b805840593422e1da884ef552fd667fa2cf
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)