Skip to content

Commit

Permalink
Make the default wait timeout infinity (continued)
Browse files Browse the repository at this point in the history
This the continuation of #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.
  • Loading branch information
nickva committed Apr 6, 2021
1 parent c784cc4 commit 55022a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/erlfdb.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 55022a5

Please sign in to comment.