From a7cff653d250826334ecd05bb6b184ed3327037c Mon Sep 17 00:00:00 2001 From: Karl Nilsson Date: Tue, 12 Apr 2022 09:45:23 +0100 Subject: [PATCH] remove debug timer:sleep/1 call in pre_init --- src/ra.app.src | 2 +- src/ra_log.erl | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ra.app.src b/src/ra.app.src index a6c63232..41696fa3 100644 --- a/src/ra.app.src +++ b/src/ra.app.src @@ -1,6 +1,6 @@ {application,ra, [{description,"Raft library"}, - {vsn,"2.0.7"}, + {vsn,"2.0.8"}, {licenses,["Apache","MPL"]}, {links,[{"github","https://github.com/rabbitmq/ra"}]}, {modules,[]}, diff --git a/src/ra_log.erl b/src/ra_log.erl index 854b0796..e734f09e 100644 --- a/src/ra_log.erl +++ b/src/ra_log.erl @@ -127,9 +127,7 @@ ]). pre_init(#{uid := UId, - system_config := #{data_dir := DataDir} - } = Conf) -> - timer:sleep(1), + system_config := #{data_dir := DataDir}} = Conf) -> Dir = server_data_dir(DataDir, UId), SnapModule = maps:get(snapshot_module, Conf, ?DEFAULT_SNAPSHOT_MODULE), SnapshotsDir = filename:join(Dir, "snapshots"),