anchor.diff:  %%% @end
   %%%-------------------------------------------------------------------
   %%% @doc
  -%%% This module manages outgoing connections to peer provider.
  -%%% It starts them and restarts when they fail. Also sends keepalives
  -%%% through them periodically.
  +%%% This module implements gen_server behaviour and is responsible for
  +%%% management of connections for outgoing provider session. It starts
  +%%% such connections, monitors them and restarts if they fail.
  +%%% Outgoing provider sessions should be created immediately after discovering
  +%%% new peer (provider supporting the same space as this provider) and
  +%%% terminated when when there is no more cooperation point left
  +%%% (peer unsupports spaces that we support).
   %%% @end
   %%%-------------------------------------------------------------------
   -module(connection_manager).
  
positive.code: %%--------------------------------------------------------------------
  -spec terminate(Reason :: (normal | shutdown | {shutdown, term()} | term()),
      state()) -> term().
  terminate(_Reason, _State) ->
      ok.
  
  
  %%--------------------------------------------------------------------
  
negative.code: %%--------------------------------------------------------------------
  %% @private
  %% @doc
  %% Connects to peer nodes with witch he is not yet connected if next
  %% renewal is not scheduled. Otherwise does nothing.
  %% @end
  %%--------------------------------------------------------------------
  -spec renew_connections(state()) -> state().
  