Remove some compiler warnings
Add type information to the nursery structure
This commit is contained in:
parent
9006ef037f
commit
b254a5e345
1 changed files with 10 additions and 2 deletions
|
@ -32,8 +32,16 @@
|
|||
-include("hanoidb.hrl").
|
||||
-include_lib("kernel/include/file.hrl").
|
||||
|
||||
-record(nursery, { log_file, dir, cache, total_size=0, count=0,
|
||||
last_sync=now(), max_level, config=[], step=0, merge_done=0 }).
|
||||
-record(nursery, { log_file :: file:fd(),
|
||||
dir :: string(),
|
||||
cache :: gb_tree(),
|
||||
total_size=0 :: integer(),
|
||||
count=0 :: integer(),
|
||||
last_sync=now() :: erlang:timestamp(),
|
||||
max_level :: integer(),
|
||||
config=[] :: [{atom(), term()}],
|
||||
step=0 :: integer(),
|
||||
merge_done=0 :: integer()}).
|
||||
|
||||
-spec new(string(), integer(), [_]) -> {ok, #nursery{}} | {error, term()}.
|
||||
|
||||
|
|
Loading…
Reference in a new issue