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.
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 @@
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)