anchor.diff:  
   
   %% gproc entries
  --export([register_scarcity_server/1,
  -         lookup_scarcity_server/1,
  -         await_scarcity_server/1]).
  +-export([register_server/1,
  +         lookup_server/1,
  +         await_server/1]).
   
   %% api functions
   -export([start_link/2,
  
positive.code: %% @end
  -spec get_order(torrent_id(), pieceset()) -> {ok, [pos_integer()]}.
  get_order(TorrentID, Pieceset) ->
      SrvPid = lookup_scarcity_server(TorrentID),
      gen_server:call(SrvPid, {get_order, Pieceset}).
  
  %% @doc Receive updates to changes in scarcity
  
negative.code: 
  %% @doc Register as the scarcity server for a torrent
  %% @end
  -spec register_server(torrent_id()) -> true.
  register_server(TorrentID) ->
      gproc:add_local_name({etorrent, TorrentID, scarcity}).
  
  
  %% @doc Lookup the scarcity server for a torrent
  %% @end
  -spec lookup_server(torrent_id()) -> pid().
  lookup_server(TorrentID) ->
      gproc:lookup_local_name({etorrent, TorrentID, scarcity}).
  
  
  %% @doc Wait for the scarcity server of a torrent to register
  %% @end
  -spec await_server(torrent_id()) -> pid().
  await_server(TorrentID) ->
      Name = {etorrent, TorrentID, scarcity},
      {Pid, undefined} = gproc:await({n, l, Name}, 5000),
      Pid.
  