Skip to content

Commit

Permalink
fix(core-blockchain): add missing return type to this.queue (#3817)
Browse files Browse the repository at this point in the history
  • Loading branch information
deanpress committed Jun 29, 2020
1 parent aab4089 commit 511e575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-blockchain/src/blockchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class Blockchain implements blockchain.IBlockchain {
this.actions = stateMachine.actionMap(this);
this.blockProcessor = new BlockProcessor(this);

this.queue = async.queue(async (blockList: { blocks: Interfaces.IBlockData[] }) => {
this.queue = async.queue(async (blockList: { blocks: Interfaces.IBlockData[] }): Promise<Interfaces.IBlock[] | undefined> => {
try {
return await this.processBlocks(blockList.blocks);
} catch (error) {
Expand Down

0 comments on commit 511e575

Please sign in to comment.