Browse Source

No longer need to pass reference of self to storage adapter

emp
Luke Childs 7 years ago
committed by Jytesh
parent
commit
73ad7c1576
  1. 2
      packages/keyv/src/index.js

2
packages/keyv/src/index.js

@ -26,7 +26,7 @@ class Keyv extends EventEmitter {
); );
if (!this.opts.store) { if (!this.opts.store) {
const adapterOpts = Object.assign({ keyv: this }, this.opts); const adapterOpts = Object.assign({}, this.opts);
this.opts.store = loadStore(adapterOpts); this.opts.store = loadStore(adapterOpts);
} }

Loading…
Cancel
Save