anchor.diff:  %% @private
   -spec handle_failed_connection_attempt(state()) -> {noreply, state()}.
   handle_failed_connection_attempt(State) ->
  -    NewState = case failed_connection_attempts_exceeded(State) of
  +    NewState = case failed_connection_attempts_limit_exceeded(State) of
           true -> terminate_session(State);
           false -> schedule_next_renewal(State)
  -    end,
  -    {noreply, NewState}.
  -
  -
  -%% @private
  --spec handle_connection_death(state()) -> {noreply, state()}.
  -handle_connection_death(State0) ->
  -    NewState = case renew_connections(State0) of
  -        {ok, State1} -> State1;
  -        {error, peer_offline} -> terminate_session(State0)
       end,
       {noreply, NewState}.
   
  
positive.code: 
  -behaviour(gen_server).
  
  -include("modules/datastore/datastore_models.hrl").
  -include_lib("ctool/include/logging.hrl").
  -include_lib("ctool/include/onedata.hrl").
  
  
negative.code: %% meaning that peer is probably down/offline, returns error.
  %% @end
  %%--------------------------------------------------------------------
  -spec renew_connections(state()) -> state().
  renew_connections(#state{
      peer_id = PeerId,
      session_id = SessionId,
  