Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Commit

Permalink
mute listener warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
substack authored and substack committed Dec 3, 2017
1 parent e2ae99d commit bbbd932
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ function Query (opts) {
self.emit('add', value)
})
self.archive = opts.archive

// mute listener warnings
if (self.archive.metadata) self.archive.metadata.setMaxListeners(0)
if (self.archive.content) self.archive.content.setMaxListeners(0)
else self.archive.on('content', function () {
self.archive.content.setMaxListeners(0)
})

self.bboxdb = sub(self.db, 'b', { valueEncoding: 'json' })
self.drivedex = hdi({
archive: self.archive,
Expand Down

0 comments on commit bbbd932

Please sign in to comment.