anchor.diff:           code_change/3]).
   
   -record(state, {
  -    interval=3000,
  -    table=none :: atom()
  +          interval = timer:seconds(30) :: integer(),
  +          table    = none :: atom()
   }).
   
   -ignore_xref([{start_link, 0}]).
  
positive.code:     end,
      {reply, Reply, State};
  
  handle_call(update, _, State) ->
      %% Run a persistence operation on all torrents
      %% TODO - in the ETS implementation the state of all inactive
      %%        torrents was flushed out on each persitance operation.
      #state{table=Table} = State,
      _ = [begin
          TorrentID = proplists:get_value(id, Props),
          Filename  = proplists:get_value(filename, Props),
          track_torrent(TorrentID, Filename, Table)
      end || Props <- etorrent_table:all_torrents()],
      {reply, ok, State}.
  
  %% @private
  
negative.code: 
  %% API
  -export([start_link/0,
           list/0,
           query_state/1]).
  
  %% Privete API
  