Skip to content

Commit

Permalink
Fix: indexer OPG
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Oct 21, 2020
1 parent 0374bd4 commit a3c51fd
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions cmd/indexer/indexer/boost.go
Original file line number Diff line number Diff line change
Expand Up @@ -489,19 +489,19 @@ func (bi *BoostIndexer) getDataFromBlock(network string, head noderpc.Header) ([
// parsers.WithTokenViews(bi.tokenViews),
// )

parser := operations.NewGroup(operations.NewParseParams(
bi.rpc,
bi.es,
operations.WithConstants(bi.currentProtocol.Constants),
operations.WithHead(head),
operations.WithIPFSGateways(bi.cfg.IPFSGateways),
operations.WithInterfaces(bi.interfaces),
operations.WithShareDirectory(bi.cfg.Share.Path),
operations.WithTokenViews(bi.tokenViews),
operations.WithNetwork(network),
))
parsedModels := make([]elastic.Model, 0)
for _, opg := range data.Array() {
parser := operations.NewGroup(operations.NewParseParams(
bi.rpc,
bi.es,
operations.WithConstants(bi.currentProtocol.Constants),
operations.WithHead(head),
operations.WithIPFSGateways(bi.cfg.IPFSGateways),
operations.WithInterfaces(bi.interfaces),
operations.WithShareDirectory(bi.cfg.Share.Path),
operations.WithTokenViews(bi.tokenViews),
operations.WithNetwork(network),
))
parsed, err := parser.Parse(opg)
if err != nil {
return nil, err
Expand Down

0 comments on commit a3c51fd

Please sign in to comment.