From 52d7ef25c19016f5ef0b02b7284e0c35a5b0bb6a Mon Sep 17 00:00:00 2001 From: Jian Xiao Date: Wed, 11 Dec 2024 23:34:08 +0000 Subject: [PATCH] fix --- disperser/dataapi/operator_handler.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/disperser/dataapi/operator_handler.go b/disperser/dataapi/operator_handler.go index 5335a7b298..10d65104cb 100644 --- a/disperser/dataapi/operator_handler.go +++ b/disperser/dataapi/operator_handler.go @@ -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 @@ -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