Skip to content

Commit

Permalink
remove debug timer:sleep/1 call in pre_init
Browse files Browse the repository at this point in the history
  • Loading branch information
kjnilsson committed Apr 12, 2022
1 parent 10f189c commit a7cff65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ra.app.src
Original file line number Diff line number Diff line change
@@ -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,[]},
Expand Down
4 changes: 1 addition & 3 deletions src/ra_log.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit a7cff65

Please sign in to comment.