Skip to content

Commit

Permalink
Merge pull request #471 from digigarlab/fix-leveldown-import
Browse files Browse the repository at this point in the history
  • Loading branch information
fergiemcdowall committed Mar 29, 2019
2 parents 6d7181f + 1eed6d8 commit 5653eac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const Logger = require('js-logger')
const level = require('levelup')
const down = require('leveldown')
const SearchIndexAdder = require('search-index-adder')
const SearchIndexSearcher = require('search-index-searcher')

Expand Down Expand Up @@ -75,6 +74,7 @@ const getOptions = function (options, done) {
// Use the global one because the library doesn't support providing handler to named logger
Logger.setHandler(SearchIndex.options.logHandler)
if (!options.indexes) {
const down = require('leveldown')
level(SearchIndex.options.indexPath || 'si', {
valueEncoding: 'json',
db: down
Expand Down

0 comments on commit 5653eac

Please sign in to comment.