Skip to content

Commit

Permalink
support key in options
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh committed Jul 16, 2018
1 parent c31a83e commit b583035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function Feed (createStorage, key, opts) {
this.length = 0
this.byteLength = 0
this.maxRequests = opts.maxRequests || 16
this.key = key || null
this.key = key || opts.key || null
this.discoveryKey = this.key && crypto.discoveryKey(this.key)
this.secretKey = secretKey
this.bitfield = null
Expand Down

0 comments on commit b583035

Please sign in to comment.