var LamassuConfig = require('lamassu-config');
var psql = process.env.DATABASE_URL || 'postgres://lamassu:lamassu@localhost/lamassu';
module.exports = new LamassuConfig(psql);

var LamassuConfig = require('lamassu-config');
var psql = process.env.DATABASE_URL || 'postgres://lamassu:lamassu@localhost/lamassu';
var config = module.exports = new LamassuConfig(psql, 10000);

setInterval(function() {
  config.cleanExpiredPairingTokens(function(err) {
    if (err) console.error('Cleaning expired pairing tokens failed: ' + err.message);
  });
}, 60 * 1000); // Our default TTL is 1 hour so let's check every minute.

Clean out expired tokens periodically
Clean out expired tokens periodically
