-
Notifications
You must be signed in to change notification settings - Fork 11
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
Conversation
@@ -54,13 +54,6 @@ func NewIndexer(args ArgsIndexerFactory) (dataindexer.Indexer, error) { | |||
return nil, err | |||
} | |||
|
|||
dispatcher, err := dataindexer.NewDataDispatcher(args.IndexerCacheSize) |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
process/dataindexer/dataIndexer.go
Outdated
headerHash := outportBlock.BlockData.HeaderHash | ||
shardID := header.GetShardID() | ||
headerNonce := header.GetNonce() | ||
defer func(startTime time.Time, headerHash []byte, headerNonce uint64, shardID uint32) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
dataDispatcher