send heartbeat immediately on startup

This commit is contained in:
Girish Ramakrishnan
2015-10-27 17:05:56 -07:00
parent 4f13ef9cea
commit bec5eaf3c9
2 changed files with 7 additions and 2 deletions

View File

@@ -115,7 +115,6 @@ function initialize(callback) {
if (process.env.BOX_ENV !== 'test') {
exports.events.on(exports.EVENT_ACTIVATED, addDnsRecords);
exports.events.on(exports.EVENT_ACTIVATED, sendHeartbeat); // optmization for not waiting till the next 1-min
}
userdb.count(function (error, count) {