Skip to content

Commit 5b87a5c

Browse files
committed
need not be comma separated
1 parent 94badb4 commit 5b87a5c

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

nimbus_verified_proxy/lc_backend.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func new*(
4343
LCRestClientPool(cfg: cfg, forkDigests: forkDigests, clients: @[])
4444

4545
proc addEndpoints*(pool: LCRestClientPool, urlList: UrlList) {.raises: [ValueError].} =
46-
for endpoint in urlList.urls:
46+
for endpoint in urlList:
4747
if endpoint in pool.urls:
4848
continue
4949

nimbus_verified_proxy/nimbus_verified_proxy_conf.nim

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ type
2626
kind*: Web3UrlKind
2727
web3Url*: string
2828

29-
UrlList* = object
30-
urls*: seq[string]
29+
UrlList* = seq[string]
3130

3231
#!fmt: off
3332
type VerifiedProxyConf* = object
@@ -127,8 +126,8 @@ type VerifiedProxyConf* = object
127126
# (Untrusted) web3 provider
128127
# No default - Needs to be provided by the user
129128
beaconApiUrls* {.
130-
desc: "command separated URLs of the light client data provider",
131-
name: "external-beacon-api-urls"
129+
desc: "URL of the light client data provider. Multiple URLs can be specified by defining the option again on the command line",
130+
name: "external-beacon-api-url"
132131
.}: UrlList
133132

134133
#!fmt: on
@@ -158,7 +157,7 @@ proc parseCmdArg*(T: type UrlList, p: string): T {.raises: [ValueError].} =
158157
if not (normalizedScheme == "http" or normalizedScheme == "https"):
159158
raise newException(ValueError, "Light Client Endpoint should be a http(s) URL")
160159

161-
UrlList(urls: urls)
160+
UrlList(urls)
162161

163162
proc completeCmdArg*(T: type Web3Url, val: string): seq[string] =
164163
@[]

0 commit comments

Comments
 (0)