Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
Clear the peerbook if it's not corrupted
Browse files Browse the repository at this point in the history
  • Loading branch information
Vagabond committed Jul 17, 2021
1 parent 7dc781a commit 598a2d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/peerbook/libp2p_peerbook.erl
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,8 @@ open_rocks(DataDir, CFOpts, TTL, clean) ->
_ ->
open_rocks(DataDir, CFOpts, TTL, clear)
end;
{error, _} ->
open_rocks(DataDir, CFOpts, TTL, clear);
{ok, _DB} = OK -> OK
end;
open_rocks(DataDir, CFOpts, TTL, repaired) ->
Expand Down

0 comments on commit 598a2d7

Please sign in to comment.