Skip to content

Commit f412631

Browse files
wa_raft_log: typing
Summary: the only call: https://www.internalfb.com/code/fbsource/[ef7cc62e00978ad4c539a570e9f26927bb009601]/whatsapp/server/erl/wa_raft/src/wa_raft_log.erl?lines=534 the third parameter cannot be `infinity` Differential Revision: D60904209 fbshipit-source-id: 69591db0ea993c1bced2c41d44a98638aa41533a
1 parent f769c78 commit f412631

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/wa_raft_log.erl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ fold_impl(Log, First, Last, SizeLimit, Func, AccIn) ->
437437
%% provider to the callback function.
438438
-spec fold_terms(LogOrView :: log() | view(),
439439
First :: log_index(),
440-
Last :: log_index() | infinity,
440+
Last :: log_index(),
441441
Func :: fun((Index :: log_index(), Term :: log_term(), Acc) -> Acc),
442442
Acc) ->
443443
{ok, Acc} | wa_raft:error().
@@ -447,7 +447,6 @@ fold_terms(Log, First, Last, Func, Acc) ->
447447
Provider = provider(Log),
448448
LogFirst = Provider:first_index(Log),
449449
LogLast = Provider:last_index(Log),
450-
% eqwalizer:fixme - min [T166261957]
451450
fold_terms_impl(Log, max(First, LogFirst), min(Last, LogLast), Func, Acc).
452451

453452
-spec fold_terms_impl(

0 commit comments

Comments
 (0)