Skip to content

Commit

Permalink
Remove ar_mining_io gen_server:call timeouts
Browse files Browse the repository at this point in the history
Avoid occasional graceless crashes when a machine gets slow.
  • Loading branch information
Lev Berman committed Apr 17, 2024
1 parent bac4141 commit c6ca466
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apps/arweave/src/ar_mining_io.erl
Expand Up @@ -30,13 +30,14 @@ start_link() ->
gen_server:start_link({local, ?MODULE}, ?MODULE, [], []).

set_largest_seen_upper_bound(PartitionUpperBound) ->
gen_server:call(?MODULE, {set_largest_seen_upper_bound, PartitionUpperBound}).
gen_server:call(?MODULE, {set_largest_seen_upper_bound, PartitionUpperBound}, infinity).

get_partitions() ->
gen_server:call(?MODULE, get_partitions).
gen_server:call(?MODULE, get_partitions, infinity).

read_recall_range(WhichChunk, Worker, Candidate, RecallRangeStart) ->
gen_server:call(?MODULE, {read_recall_range, WhichChunk, Worker, Candidate, RecallRangeStart}).
gen_server:call(?MODULE,
{read_recall_range, WhichChunk, Worker, Candidate, RecallRangeStart}, infinity).

get_partitions(PartitionUpperBound) when PartitionUpperBound =< 0 ->
[];
Expand Down

0 comments on commit c6ca466

Please sign in to comment.