Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Lev Berman committed Aug 22, 2024
1 parent 67dd1c8 commit e162ff4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions apps/arweave/src/ar_mining_worker.erl
Original file line number Diff line number Diff line change
Expand Up @@ -783,12 +783,8 @@ try_to_reserve_cache_space(SessionKey, State) ->
case total_cache_size(State) =< State#state.chunk_cache_limit of
true ->
%% reserve for both h1 and h2
?LOG_INFO("DEBUG: reserving; limit=~B reserving=~B", [State#state.chunk_cache_limit,
2 * recall_range_sub_chunks()]),
{true, update_chunk_cache_size(2 * recall_range_sub_chunks(), SessionKey, State)};
false ->
?LOG_INFO("DEBUG: full; limit=~B totalsize=~B", [State#state.chunk_cache_limit,
total_cache_size(State)]),
false
end.

Expand Down

0 comments on commit e162ff4

Please sign in to comment.