OTP 19 requires defaults in dialyzer

This commit is contained in:
Martin Sumner 2017-11-13 14:02:39 +00:00
parent d866d7b5dc
commit f55cbbeac3
6 changed files with 10 additions and 10 deletions

View file

@ -48,8 +48,8 @@
source_inker :: pid() | undefined,
reload_strategy = [] :: list(),
waste_retention_period :: integer() | undefined,
compression_method :: lz4|native,
compress_on_receipt :: boolean(),
compression_method = native :: lz4|native,
compress_on_receipt = false :: boolean(),
max_run_length}).
-record(penciller_options,
@ -60,7 +60,7 @@
bookies_mem :: tuple() | undefined,
source_penciller :: pid() | undefined,
snapshot_longrunning = true :: boolean(),
compression_method :: lz4|native,
compression_method = native :: lz4|native,
levelzero_cointoss = false :: boolean()}).
-record(iclerk_options,
@ -68,7 +68,7 @@
max_run_length :: integer() | undefined,
cdb_options = #cdb_options{} :: #cdb_options{},
waste_retention_period :: integer() | undefined,
compression_method :: lz4|native,
compression_method = native :: lz4|native,
reload_strategy = [] :: list()}).
-record(recent_aae, {filter :: whitelist|blacklist,

View file

@ -109,7 +109,7 @@
waste_retention_period :: integer() | undefined,
waste_path :: string() | undefined,
reload_strategy = ?DEFAULT_RELOAD_STRATEGY :: list(),
compression_method :: lz4|native}).
compression_method = native :: lz4|native}).
-record(candidate, {low_sqn :: integer() | undefined,
filename :: string() | undefined,

View file

@ -136,8 +136,8 @@
clerk :: pid() | undefined,
compaction_pending = false :: boolean(),
is_snapshot = false :: boolean(),
compression_method :: lz4|native,
compress_on_receipt :: boolean(),
compression_method = native :: lz4|native,
compress_on_receipt = false :: boolean(),
source_inker :: pid() | undefined}).

View file

@ -50,7 +50,7 @@
-record(state, {owner :: pid() | undefined,
root_path :: string() | undefined,
pending_deletions = dict:new(), % OTP 16 does not like type
compression_method :: lz4|native
compression_method = native :: lz4|native
}).
%%%============================================================================

View file

@ -246,7 +246,7 @@
head_timing :: tuple() | undefined,
compression_method :: lz4|native}).
compression_method = native :: lz4|native}).
-type penciller_options() :: #penciller_options{}.
-type bookies_memory() :: {tuple()|empty_cache,

View file

@ -140,7 +140,7 @@
filename,
yield_blockquery = false :: boolean(),
blockindex_cache,
compression_method :: press_methods()}).
compression_method = native :: press_methods()}).
-type sst_state() :: #state{}.