mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-12 04:30:04 +00:00
fix deduplication (#8640)
This commit is contained in:
parent
eca67cec4c
commit
b346cde919
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user