From 3f040927bc5486d41df9e8f69ef43878c79c82b7 Mon Sep 17 00:00:00 2001 From: Samuel Laferriere Date: Thu, 9 May 2024 16:39:42 -0700 Subject: [PATCH] change errors.Join to utils.WrapError --- services/operatorsinfo/operatorsinfo_inmemory.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/operatorsinfo/operatorsinfo_inmemory.go b/services/operatorsinfo/operatorsinfo_inmemory.go index f6c5daec..3cc836b7 100644 --- a/services/operatorsinfo/operatorsinfo_inmemory.go +++ b/services/operatorsinfo/operatorsinfo_inmemory.go @@ -10,6 +10,7 @@ import ( "github.com/Layr-Labs/eigensdk-go/crypto/bls" "github.com/Layr-Labs/eigensdk-go/logging" "github.com/Layr-Labs/eigensdk-go/types" + "github.com/Layr-Labs/eigensdk-go/utils" "github.com/ethereum/go-ethereum/common" ) @@ -188,10 +189,10 @@ func (ops *OperatorsInfoServiceInMemory) queryPastRegisteredOperatorEventsAndFil wg.Wait() if pubkeysErr != nil { - return errors.Join(errors.New("error querying existing registered operators"), pubkeysErr) + return utils.WrapError(errors.New("error querying existing registered operators"), pubkeysErr) } if socketsErr != nil { - return errors.Join(errors.New("error querying existing registered operator sockets"), socketsErr) + return utils.WrapError(errors.New("error querying existing registered operator sockets"), socketsErr) } ops.logger.Debug("List of queried operator registration events in blsApkRegistry", "alreadyRegisteredOperatorAddr", alreadyRegisteredOperatorAddrs, "alreadyRegisteredOperatorPubkeys", alreadyRegisteredOperatorPubkeys, "service", "OperatorPubkeysServiceInMemory") ops.logger.Debug("List of queried operator socket registration events", "socketsMap", socketsMap, "service", "OperatorPubkeysServiceInMemory")