style(exports): module.exports moved to the top of a file
This commit is contained in:
parent
21c957cf0f
commit
95330cc39d
1 changed files with 5 additions and 5 deletions
|
|
@ -4,6 +4,11 @@ var _trader;
|
||||||
var _lamassuConfig;
|
var _lamassuConfig;
|
||||||
var logger = require('./logger');
|
var logger = require('./logger');
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
init: init,
|
||||||
|
getFingerprint: getFingerprint
|
||||||
|
};
|
||||||
|
|
||||||
// Make sure these are higher than polling interval
|
// Make sure these are higher than polling interval
|
||||||
// or there will be a lot of errors
|
// or there will be a lot of errors
|
||||||
var STALE_TICKER = 180000;
|
var STALE_TICKER = 180000;
|
||||||
|
|
@ -105,8 +110,3 @@ function getFingerprint(req) {
|
||||||
return typeof req.connection.getPeerCertificate === 'function' &&
|
return typeof req.connection.getPeerCertificate === 'function' &&
|
||||||
req.connection.getPeerCertificate().fingerprint;
|
req.connection.getPeerCertificate().fingerprint;
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
init: init,
|
|
||||||
getFingerprint: getFingerprint
|
|
||||||
};
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue