fix(dsraft): replace unused clause with catch-all one

Co-authored-by: Thales Macedo Garitezi <thalesmg@gmail.com>
This commit is contained in:
Andrew Mayorov 2024-08-06 19:57:57 +02:00
parent 42e4a635e0
commit ff72d55491
No known key found for this signature in database
GPG Key ID: 2837C62ACFBFED5D
1 changed files with 4 additions and 2 deletions

View File

@ -383,9 +383,11 @@ handle_cast(_Msg, State) ->
{noreply, State}.
handle_info({timeout, _TRef, bootstrap}, St) ->
{noreply, St, {continue, bootstrap}}.
{noreply, St, {continue, bootstrap}};
handle_info(_Info, State) ->
{noreply, State}.
terminate(_Reason, {DB, Shard}) ->
terminate(_Reason, #st{db = DB, shard = Shard}) ->
%% NOTE: Mark as not ready right away.
ok = erase_shard_info(DB, Shard),
%% NOTE: Timeouts are ignored, it's a best effort attempt.