Minor type fix

This commit is contained in:
Shunichi Shinohara 2015-11-05 23:43:10 +09:00
parent 0e21581e47
commit 393132a1d8

View file

@ -67,12 +67,12 @@
]). ]).
-define(TIMEOUT, 10 * 1000). -define(TIMEOUT, 10 * 1000).
-include("machi_projection.hrl"). %% included for pv1_epoch_n type -include("machi_projection.hrl"). %% included for pv1_epoch type
-record(state, {fluname :: atom(), -record(state, {fluname :: atom(),
tid :: ets:tid(), tid :: ets:tid(),
datadir :: string(), datadir :: string(),
epoch :: pv1_epoch_n() epoch :: pv1_epoch()
}). }).
%% public API %% public API
@ -126,7 +126,7 @@ list_files_by_prefix(_FluName, Other) ->
init([FluName, DataDir]) -> init([FluName, DataDir]) ->
Tid = ets:new(make_filename_mgr_name(FluName), [named_table, {read_concurrency, true}]), Tid = ets:new(make_filename_mgr_name(FluName), [named_table, {read_concurrency, true}]),
{ok, #state{fluname = FluName, {ok, #state{fluname = FluName,
epoch = 0, epoch = {0, <<"NONE">>},
datadir = DataDir, datadir = DataDir,
tid = Tid}}. tid = Tid}}.