problem: using "upstreams" on two levels of config is confusing
This commit is contained in:
@@ -76,7 +76,7 @@ proxy:
|
||||
- id: kovan
|
||||
blockchain: kovan
|
||||
|
||||
upstreams:
|
||||
cluster:
|
||||
upstreams:
|
||||
- id: infura-eth
|
||||
chain: ethereum
|
||||
|
||||
@@ -3,7 +3,7 @@ port: 2449
|
||||
tls:
|
||||
enabled: false
|
||||
|
||||
upstreams:
|
||||
cluster:
|
||||
upstreams:
|
||||
- id: infura-eth
|
||||
chain: ethereum
|
||||
|
||||
@@ -29,7 +29,7 @@ proxy:
|
||||
blockchain: ethereum
|
||||
- id: kovan
|
||||
blockchain: kovan
|
||||
upstreams:
|
||||
cluster:
|
||||
upstreams:
|
||||
- id: infura-eth
|
||||
chain: ethereum
|
||||
|
||||
@@ -16,7 +16,7 @@ tls:
|
||||
client:
|
||||
require: true
|
||||
ca: "ca.crt"
|
||||
upstreams:
|
||||
cluster:
|
||||
include: "upstreams.yaml"
|
||||
----
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ class UpstreamsConfigReader(
|
||||
}
|
||||
|
||||
override fun read(input: MappingNode?): UpstreamsConfig? {
|
||||
return getMapping(input, "upstreams")?.let {
|
||||
return getMapping(input, "cluster")?.let {
|
||||
readInternal(it)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ proxy:
|
||||
- id: kovan
|
||||
blockchain: kovan
|
||||
|
||||
upstreams:
|
||||
cluster:
|
||||
defaults:
|
||||
- chains:
|
||||
- ethereum
|
||||
|
||||
Reference in New Issue
Block a user