             else
                 winston.info("successfully registered with database")
 
-setInterval(register_with_database, 1000*registration_interval_seconds)
 
 # For each commit in each project, re-enter a record in the database.
 

# 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) ->
    database?.update
        table : 'snap_servers'
        where : {id : server_id, dummy:true}

        (cb) ->
            connect_to_database(cb)
        (cb) ->
            if program.resend_all_commits
                resend_all_commits(cb)
            else
