Skip to content

Commit

Permalink
spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh committed Jul 5, 2024
1 parent b8bb9f8 commit 8a7390a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ module.exports = class Autobase extends ReadyResource {
this.view = null
this.system = null
this.version = -1
this.interupted = false
this.interrupted = false

this.maxCacheSize = handlers.maxCacheSize || 0 // 0 means the hyperbee default cache size will be used

Expand Down Expand Up @@ -349,9 +349,9 @@ module.exports = class Autobase extends ReadyResource {
}
}

interupt (err) {
this.interupted = true
throw err // throw to interupt apply
interrupt (err) {
this.interrupted = true
throw err // throw to interrupt apply
}

async flush () {
Expand Down Expand Up @@ -620,9 +620,9 @@ module.exports = class Autobase extends ReadyResource {
if (this.closing) return
this.close().catch(safetyCatch)

if (this.interupted) {
this.emit('interupt', err)
this.interupted = false
if (this.interrupted) {
this.emit('interrupt', err)
this.interrupted = false
return
}

Expand Down

0 comments on commit 8a7390a

Please sign in to comment.