 # Write entry to the database periodicially (with ttl) that this
 # snap server is up and running, and provide the key.
 size_of_bup_archive = undefined
-register_with_database = (cb) ->
+register_with_database = () ->
     database?.update
         table : 'snap_servers'
         where : {id : server_id, dummy:true}


secret_key_length             = 128
registration_interval_seconds = 15

net       = require 'net'
winston   = require 'winston'

            monitor_snapshot_queue()
            cb()
        (cb) ->
            setInterval(register_with_database, 1000*registration_interval_seconds)
            setInterval(snapshot_active_projects, 1000*snapshot_interval_seconds)
            cb()
        #(cb) ->
        #    ensure_all_projects_have_a_snapshot(cb)
        #(cb) ->
