[#1619] ir: Fix RPC endpoint iteration

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
remotes/fyrchik/tree-errors
Pavel Karpy 2022-07-22 11:54:21 +03:00 committed by Pavel Karpy
parent 1691364653
commit fb1fac02e9
1 changed files with 1 additions and 1 deletions

View File

@ -960,7 +960,7 @@ func createClient(ctx context.Context, p *chainParams, errChan chan<- error) (*c
section := p.name + ".endpoint.client"
for i := 0; ; i++ {
addr := p.cfg.GetString(section + ".address")
addr := p.cfg.GetString(fmt.Sprintf("%s.%d.%s", section, i, "address"))
if addr == "" {
break
}