Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove data dispatcher #225

Merged
merged 7 commits into from
Jun 7, 2023
Merged

Conversation

miiu96
Copy link
Contributor

@miiu96 miiu96 commented Jun 6, 2023

  • Removed the dataDispatcher

@miiu96 miiu96 changed the base branch from rc/v1.6.0 to feat/refactoring-and-improves June 6, 2023 13:58
@bogdan-rosianu bogdan-rosianu self-requested a review June 6, 2023 13:59
@miiu96 miiu96 self-assigned this Jun 6, 2023
bogdan-rosianu
bogdan-rosianu previously approved these changes Jun 6, 2023
@@ -54,13 +54,6 @@ func NewIndexer(args ArgsIndexerFactory) (dataindexer.Indexer, error) {
return nil, err
}

dispatcher, err := dataindexer.NewDataDispatcher(args.IndexerCacheSize)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we also remove the args.IndexerCacheSize ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

headerHash := outportBlock.BlockData.HeaderHash
shardID := header.GetShardID()
headerNonce := header.GetNonce()
defer func(startTime time.Time, headerHash []byte, headerNonce uint64, shardID uint32) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can remove all parameters from this list in order to simplify the call. We need the startTime := time.Now variable.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@miiu96 miiu96 merged commit a1c5839 into feat/refactoring-and-improves Jun 7, 2023
@iulianpascalau iulianpascalau deleted the remove-data-dispatcher branch June 7, 2023 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants