Fix dialyzer warnings

Dialyzer got smarter in OTP 21 and spotted that the output type was wrong from tune_seglist
This commit is contained in:
Martin Sumner 2018-12-07 14:36:18 +00:00
parent bb0d088aae
commit 4b4b774c0d

View file

@ -160,6 +160,10 @@
:: leveled_codec:ledger_kv()|expandable_pointer(). :: leveled_codec:ledger_kv()|expandable_pointer().
-type binaryslot_element() -type binaryslot_element()
:: {tuple(), tuple()}|{binary(), integer(), tuple(), tuple()}. :: {tuple(), tuple()}|{binary(), integer(), tuple(), tuple()}.
-type tuned_seglist()
:: false|
{sets, sets:set(non_neg_integer())}|
{list, list(non_neg_integer())}.
%% yield_blockquery is used to detemrine if the work necessary to process a %% yield_blockquery is used to detemrine if the work necessary to process a
%% range query beyond the fetching the slot should be managed from within %% range query beyond the fetching the slot should be managed from within
@ -895,8 +899,7 @@ cache_hash({_SegHash, ExtraHash}) when is_integer(ExtraHash) ->
tune_hash(SegHash) -> tune_hash(SegHash) ->
SegHash band 32767. SegHash band 32767.
-spec tune_seglist(leveled_codec:segment_list()) -spec tune_seglist(leveled_codec:segment_list()) -> tuned_seglist().
-> leveled_codec:segment_list().
%% @doc %% @doc
%% Only 15 bits of the hash is ever interesting %% Only 15 bits of the hash is ever interesting
tune_seglist(SegList) -> tune_seglist(SegList) ->