rename function

This commit is contained in:
Girish Ramakrishnan
2015-12-08 19:54:37 -08:00
parent 316976d295
commit 0750db9aae
+3 -3
View File
@@ -195,12 +195,12 @@ function prepareHttpChallenge(privateKeyPem, challenge, callback) {
});
}
function notifyChallenge(privateKeyPem, challenge, callback) {
function notifyChallengeReady(privateKeyPem, challenge, callback) {
assert(util.isBuffer(privateKeyPem));
assert.strictEqual(typeof challenge, 'object');
assert.strictEqual(typeof callback, 'function');
debug('notifyChallenge: %s was met', challenge.uri);
debug('notifyChallengeReady: %s was met', challenge.uri);
var keyAuthorization = fs.readFileSync(path.join(paths.ACME_CHALLENGES_DIR, challenge.token), 'utf8');
@@ -290,7 +290,7 @@ function acmeFlow(domain, email, privateKeyPem, callback) {
prepareHttpChallenge(privateKeyPem, challenge, function (error) {
if (error) return callback(error);
notifyChallenge(privateKeyPem, challenge, function (error) {
notifyChallengeReady(privateKeyPem, challenge, function (error) {
if (error) return callback(error);
waitForChallenge(challenge, function (error) {