Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jianoaix committed Dec 11, 2024
1 parent 5498785 commit 52d7ef2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions disperser/dataapi/operator_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ func (oh *operatorHandler) getOperatorsStake(ctx context.Context, operatorId str
func (s *operatorHandler) scanOperatorsHostInfo(ctx context.Context) (*SemverReportResponse, error) {
currentBlock, err := s.indexedChainState.GetCurrentBlockNumber()
if err != nil {
return nil, fmt.Errorf("failed to fetch current block number: %s", err)
return nil, fmt.Errorf("failed to fetch current block number: %w", err)
}
operators, err := s.indexedChainState.GetIndexedOperators(context.Background(), currentBlock)
if err != nil {
return nil, fmt.Errorf("failed to fetch indexed operator info: %s", err)
return nil, fmt.Errorf("failed to fetch indexed operator info: %w", err)
}

// check operator socket registration against the indexed state
Expand All @@ -134,7 +134,7 @@ func (s *operatorHandler) scanOperatorsHostInfo(ctx context.Context) (*SemverRep
s.logger.Info("Queried indexed operators", "operators", len(operators), "block", currentBlock)
operatorState, err := s.chainState.GetOperatorState(context.Background(), currentBlock, []core.QuorumID{0, 1, 2})
if err != nil {
return nil, fmt.Errorf("failed to fetch operator state: %s", err)
return nil, fmt.Errorf("failed to fetch operator state: %w", err)
}

nodeInfoWorkers := 20
Expand Down

0 comments on commit 52d7ef2

Please sign in to comment.