Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Commit

Permalink
Merge pull request #328 from mozilla/rfk/remove-noncedb-kill-switch
Browse files Browse the repository at this point in the history
Warn but don't die if using MemoryNonceDB in production.
  • Loading branch information
chilts committed Nov 19, 2013
2 parents c718e99 + aef03f4 commit 0145a3e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions noncedb.js
Expand Up @@ -130,9 +130,8 @@ module.exports = function (config, log, now) {
return RedisNonceDB
} else {
if (config.env === 'production') {
throw 'in-memory nonce db is not suitable for production use'
log.warn('using in-memory nonce db; this is likely not suitable for production')
}
log.warn('using in-memory nonce db')
return MemoryNonceDB
}
}

0 comments on commit 0145a3e

Please sign in to comment.