Skip to content

Commit

Permalink
util: refactor PrioritizedTaskExecutor
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrocheleau committed Aug 16, 2024
1 parent c7aa1ff commit 5e09a53
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 107 deletions.
40 changes: 0 additions & 40 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion packages/trie/src/util/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from './encoding.js'
export * from './genesisState.js'
export * from './tasks.js'
export * from './walkController.js'
4 changes: 2 additions & 2 deletions packages/trie/src/util/walkController.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BranchNode, ExtensionNode, LeafNode } from '../node/index.js'
import { PrioritizedTaskExecutor } from '@ethereumjs/util'

import { PrioritizedTaskExecutor } from './tasks.js'
import { BranchNode, ExtensionNode, LeafNode } from '../node/index.js'

import type { Trie } from '../trie.js'
import type { FoundNodeFunction, Nibbles, TrieNode } from '../types.js'
Expand Down
1 change: 1 addition & 0 deletions packages/util/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,5 @@ export * from './lock.js'
export * from './mapDB.js'
export * from './provider.js'
export * from './requests.js'
export * from './tasks.js'
export * from './verkle.js'
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { assert, describe, it } from 'vitest'

import { PrioritizedTaskExecutor } from '../../src/index.js'
import { PrioritizedTaskExecutor } from '../src/index.js'

const taskExecutor = new PrioritizedTaskExecutor(2)

Expand Down
1 change: 0 additions & 1 deletion packages/verkle/src/util/index.ts

This file was deleted.

59 changes: 0 additions & 59 deletions packages/verkle/src/util/tasks.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/verkle/src/verkleTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
bytesToHex,
equalsBytes,
intToHex,
matchingBytesLength,
zeros,
} from '@ethereumjs/util'
import debug from 'debug'
Expand All @@ -22,7 +23,6 @@ import {
type VerkleTreeOpts,
type VerkleTreeOptsWithDefaults,
} from './types.js'
import { matchingBytesLength } from './util/index.js'

import type { DB, PutBatch, VerkleCrypto } from '@ethereumjs/util'
import type { Debugger } from 'debug'
Expand Down
3 changes: 1 addition & 2 deletions packages/verkle/test/verkle.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MapDB, equalsBytes, hexToBytes } from '@ethereumjs/util'
import { MapDB, equalsBytes, hexToBytes, matchingBytesLength } from '@ethereumjs/util'
import { loadVerkleCrypto } from 'verkle-cryptography-wasm'
import { assert, beforeAll, describe, it } from 'vitest'

Expand All @@ -8,7 +8,6 @@ import {
VerkleLeafNodeValue,
VerkleNodeType,
decodeNode,
matchingBytesLength,
} from '../src/index.js'
import { VerkleTree } from '../src/verkleTree.js'

Expand Down

0 comments on commit 5e09a53

Please sign in to comment.