rename func

This commit is contained in:
Girish Ramakrishnan
2018-09-10 20:35:48 -07:00
parent f38b87c660
commit 2c76716bc7

View File

@@ -77,7 +77,7 @@ ReverseProxyError.INTERNAL_ERROR = 'Internal Error';
ReverseProxyError.INVALID_CERT = 'Invalid certificate';
ReverseProxyError.NOT_FOUND = 'Not Found';
function getApi(domain, callback) {
function getCertApi(domain, callback) {
assert.strictEqual(typeof domain, 'string');
assert.strictEqual(typeof callback, 'function');
@@ -250,7 +250,7 @@ function ensureCertificate(appDomain, auditSource, callback) {
debug('ensureCertificate: %s cert does not exist', vhost);
}
getApi(appDomain.domain, function (error, api, apiOptions) {
getCertApi(appDomain.domain, function (error, api, apiOptions) {
if (error) return callback(error);
debug('ensureCertificate: getting certificate for %s with options %j', vhost, apiOptions);