Skip to content

Commit

Permalink
allow workers set to 0 (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiqiang90 authored Apr 4, 2024
1 parent 86656f8 commit be9384d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/node/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed
- Now when `workers` set to 0, it will use block dispatcher instead of throw and exit

## [4.0.0] - 2024-04-03
### Added
- Add support for eth dictionary v2 (#225)
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/indexer/fetch.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ import { UnfinalizedBlocksService } from './unfinalizedBlocks.service';
unfinalizedBlocks: UnfinalizedBlocksService,
connectionPoolState: ConnectionPoolStateManager<EthereumApiConnection>,
) =>
nodeConfig.workers !== undefined
nodeConfig.workers
? new WorkerBlockDispatcherService(
nodeConfig,
eventEmitter,
Expand Down

0 comments on commit be9384d

Please sign in to comment.