Skip to content

Commit

Permalink
Linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
saul-jb committed Mar 31, 2024
1 parent 308ac62 commit 4c613c1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/daemon/src/common/entry-tracker.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { extendDatastore } from '@organicdesign/db-utils'
import * as cborg from 'cborg'
import { Key, type Datastore } from 'interface-datastore'
import { sha256 } from 'multiformats/hashes/sha2'
import { compare as uint8ArrayCompare } from 'uint8arrays/compare'
import type { KeyvalueDB, Pair } from '@/interface.js'
import { extendDatastore } from '@organicdesign/db-utils'

// Get the hash data from raw data.
const hashEntry = async (entry: unknown): Promise<Uint8Array> => {
Expand Down
2 changes: 1 addition & 1 deletion packages/daemon/src/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { bitswap } from '@helia/block-brokers'
import HeliaPinManager from '@organicdesign/db-helia-pin-manager'
import { createKeyManager, type KeyManager } from '@organicdesign/db-key-manager'
import { ManualBlockBroker } from '@organicdesign/db-manual-block-broker'
import { extendDatastore } from '@organicdesign/db-utils'
import { createNetServer } from '@organicdesign/net-rpc'
import { MemoryBlockstore } from 'blockstore-core'
import { FsBlockstore } from 'blockstore-fs'
Expand All @@ -23,7 +24,6 @@ import { Sneakernet } from './sneakernet/index.js'
import { createTick } from './tick.js'
import type { KeyvalueDB } from '@/interface.js'
import { createLogger } from '@/logger.js'
import { extendDatastore } from '@organicdesign/db-utils'

interface Setup {
socket: string
Expand Down
2 changes: 1 addition & 1 deletion packages/daemon/src/modules/filesystem/setup.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { extendDatastore } from '@organicdesign/db-utils'
import { FileSystem } from './file-system.js'
import { LocalSettings } from './local-settings.js'
import createUploadManager from './upload-operations.js'
import type { Context, Config } from './index.js'
import type { Components } from '@/common/interface.js'
import type { CID } from 'multiformats/cid'
import { extendDatastore } from '@organicdesign/db-utils'

export default async (components: Components, config: Config): Promise<Context> => {
const { groups, datastore, blockstore, welo } = components
Expand Down
2 changes: 1 addition & 1 deletion packages/daemon/test/modules/base.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import assert from 'assert/strict'
import fs from 'fs/promises'
import Path from 'path'
import { extendDatastore } from '@organicdesign/db-utils'
import { MemoryBlockstore } from 'blockstore-core'
import { FsBlockstore } from 'blockstore-fs'
import { MemoryDatastore } from 'datastore-core'
Expand All @@ -10,7 +11,6 @@ import { CID } from 'multiformats/cid'
import { fromString as uint8ArrayFromString } from 'uint8arrays'
import { mkTestPath } from '../utils/paths.js'
import setup from '@/common/index.js'
import { extendDatastore } from '@organicdesign/db-utils'

const parseStr = (data: string): Uint8Array => uint8ArrayFromString(data, 'base64')
const testPath = mkTestPath('base')
Expand Down

0 comments on commit 4c613c1

Please sign in to comment.