Skip to content

Commit

Permalink
Merge pull request #206 from willrstern/catbox-redis-client-support
Browse files Browse the repository at this point in the history
Allow clients to shallow clone option properties
  • Loading branch information
kanongil committed Dec 18, 2018
2 parents 4203787 + bb12482 commit a871293
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/client.js
Expand Up @@ -26,7 +26,7 @@ module.exports = class {
Hoek.assert(typeof engine === 'object' || typeof engine === 'function', 'engine must be an engine object or engine prototype (function)');
Hoek.assert(typeof engine === 'function' || !options, 'Can only specify options with function engine config');

const settings = Hoek.applyToDefaults(internals.defaults, options || {});
const settings = Object.assign({}, internals.defaults, options || {});
Hoek.assert(settings.partition.match(/^[\w\-]+$/), 'Invalid partition name:' + settings.partition);

this.connection = (typeof engine === 'object' ? engine : new engine(settings));
Expand Down

0 comments on commit a871293

Please sign in to comment.