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

Commit

Permalink
Warn but don't die if using MemoryNonceDB in production.
Browse files Browse the repository at this point in the history
  • Loading branch information
rfk committed Nov 19, 2013
1 parent d1f34fa commit aef03f4
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
}
}

1 comment on commit aef03f4

@chilts
Copy link
Contributor

@chilts chilts commented on aef03f4 Nov 19, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+

Please sign in to comment.