Skip to content

Commit

Permalink
Proper class inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
seriousme committed May 7, 2022
1 parent e95351a commit 40f0f87
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions persistence.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const incomingKey = 'incoming:'

class RedisPersistence extends CachedPersistence {
constructor (opts = {}) {
super()
super(opts)
this.maxSessionDelivery = opts.maxSessionDelivery || 1000
this.packetTTL = opts.packetTTL || (() => { return 0 })

Expand All @@ -38,7 +38,6 @@ class RedisPersistence extends CachedPersistence {
}

this._getRetainedChunkBound = this._getRetainedChunk.bind(this)
CachedPersistence.call(this, opts)
}

storeRetained (packet, cb) {
Expand Down

0 comments on commit 40f0f87

Please sign in to comment.