forked from TrueCloudLab/frostfs-node
[#1619] ir: Fix RPC endpoint iteration
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
1691364653
commit
fb1fac02e9
1 changed files with 1 additions and 1 deletions
|
@ -960,7 +960,7 @@ func createClient(ctx context.Context, p *chainParams, errChan chan<- error) (*c
|
||||||
|
|
||||||
section := p.name + ".endpoint.client"
|
section := p.name + ".endpoint.client"
|
||||||
for i := 0; ; i++ {
|
for i := 0; ; i++ {
|
||||||
addr := p.cfg.GetString(section + ".address")
|
addr := p.cfg.GetString(fmt.Sprintf("%s.%d.%s", section, i, "address"))
|
||||||
if addr == "" {
|
if addr == "" {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue