From ec63c1c96e19a214b79eaf24b9e8c76b99a1c61b Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 5 Sep 2016 00:02:19 -0700 Subject: [PATCH] use subdomains.update to short-circuit dns propagation check if the entry is already uptodate, then we can bypass the wait --- src/apptask.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apptask.js b/src/apptask.js index 56a51a956..1fd93ec69 100644 --- a/src/apptask.js +++ b/src/apptask.js @@ -253,7 +253,7 @@ function registerSubdomain(app, callback) { async.retry({ times: 200, interval: 5000 }, function (retryCallback) { debugApp(app, 'Registering subdomain location [%s]', app.location); - subdomains.add(app.location, 'A', [ ip ], function (error, changeId) { + subdomains.update(app.location, 'A', [ ip ], function (error, changeId) { if (error && (error.reason === SubdomainError.STILL_BUSY || error.reason === SubdomainError.EXTERNAL_ERROR)) return retryCallback(error); // try again retryCallback(null, error || changeId);