Skip to content

Commit

Permalink
fix: Lint issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenyoung committed May 9, 2024
1 parent 05600c3 commit 1f57e9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const main = async () => {
}).option('verbose', {
alias: 'v',
description: 'Be more verbose. Outputs errors and other connection messages.'
}).option('allow', {
}).option('allow', {
alias: 'a',
type: 'boolean',
description: 'Allow anyone to pin a database. Defaults to false.'
Expand Down
7 changes: 3 additions & 4 deletions src/lib/orbiter.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,19 @@ import { handleRequest } from './handlers/index.js'
import { voyagerProtocol } from './protocol.js'
import { logger, enable } from '@libp2p/logger'


export default async ({ directory, verbose, defaultAccess } = {}) => {
const log = logger('orbitdb:voyager:orbiter')

directory = directory || join('./', 'orbiter')

defaultAccess = defaultAccess || Access.DENY

if (verbose && verbose >= 1 && verbose <= 2) {
enable('orbitdb:voyager:orbiter' + (verbose > 1 ? '*' : ':error'))
}

log('directory:', directory)

log('default access:', defaultAccess === Access.ALLOW ? 'allow all' : 'deny all')

const path = join(directory, '/', 'keystore')
Expand Down

0 comments on commit 1f57e9f

Please sign in to comment.