Browse Source

dont pass unneeded opts down the stack

Kieran Gibb 2 years ago
parent
commit
6ab1a06da7
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      index.js

+ 2
- 2
index.js View File

@@ -6,7 +6,7 @@ const path = require('path')
6 6
 const RAM = require('random-access-memory')
7 7
 const RAF = require('random-access-file')
8 8
 const maybe = require('call-me-maybe')
9
-const debug = require('debug')('cobox-group')
9
+const debug = require('debug')('cobox-group-base')
10 10
 const { EventEmitter } = require('events')
11 11
 const assert = require('assert')
12 12
 const { IDENTITY_SUBKEY_ID } = require('cobox-config')
@@ -48,7 +48,7 @@ class Base extends EventEmitter {
48 48
   }
49 49
 
50 50
   _initFeeds (_opts = {}) {
51
-    this.multifeed = multifeed(this.storage, Object.assign(this._opts, _opts, {
51
+    this.multifeed = multifeed(this.storage, Object.assign(_opts, {
52 52
       encryptionKey: this.address
53 53
     }))
54 54
     this.replicate = this.multifeed.replicate.bind(this.multifeed)