From b346cde919e1ac9e7f3f17c30c7bca7f0e11c00a Mon Sep 17 00:00:00 2001 From: Nishant Das Date: Mon, 22 Mar 2021 22:07:58 +0800 Subject: [PATCH] fix deduplication (#8640) --- beacon-chain/powchain/service.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/beacon-chain/powchain/service.go b/beacon-chain/powchain/service.go index a3cb54bec..ce5455a63 100644 --- a/beacon-chain/powchain/service.go +++ b/beacon-chain/powchain/service.go @@ -180,11 +180,11 @@ func NewService(ctx context.Context, config *Web3ServiceConfig) (*Service, error config.Eth1HeaderReqLimit = defaultEth1HeaderReqLimit } - endpoints := dedupEndpoints(config.HTTPEndpoints) + config.HTTPEndpoints = dedupEndpoints(config.HTTPEndpoints) // Select first http endpoint in the provided list. currEndpoint := "" - if len(endpoints) > 0 { - currEndpoint = endpoints[0] + if len(config.HTTPEndpoints) > 0 { + currEndpoint = config.HTTPEndpoints[0] } s := &Service{ cfg: config,