anchor.diff:  %% @end
   %%--------------------------------------------------------------------
   -spec doc({change, term()}) -> term().
  -doc({change,{Props}}) ->
  +doc({change, {Props}}) ->
       {_, Doc} = lists:keyfind(<<"doc">>, 1, Props),
       Doc.
   
  
positive.code: 
  -define(LINKS_KEY_SUFFIX, "$$").
  
  %% Base port for gateway endpoints
  -define(GATEWAY_BASE_PORT, 5084).
  
  
negative.code: %% @end
  %%--------------------------------------------------------------------
  -spec terminate(term(), gen_changes_state()) -> ok.
  terminate(Reason, #{db_gateways := Gateways}) ->
      ?warning("~p terminating with reason ~p~n", [?MODULE, Reason]),
      Gateways = maps:values(Gateways),
      lists:foreach(
          fun(#{server := Pid}) ->
              Pid ! stop
          end, Gateways),
  
      ok.
  
  
  