[#131] client: pass PrmDialOptions to dial call
All checks were successful
DCO / DCO (pull_request) Successful in 1m2s
Tests and linters / Tests (1.20) (pull_request) Successful in 1m25s
Tests and linters / Lint (pull_request) Successful in 3m0s
Tests and linters / Tests (1.21) (pull_request) Successful in 1m1s

Signed-off-by: olefirenque <egor.olefirenko892@gmail.com>
This commit is contained in:
Egor Olefirenko 2023-12-07 12:14:13 +03:00
parent 7b03c3a6a1
commit aa536d4a4d

View file

@ -118,7 +118,7 @@ func (c *Client) netMapDialNode(ctx context.Context, node *netmap.NodeInfo, prm
addresses := node.ExternalAddresses() addresses := node.ExternalAddresses()
dialAddr := func(addr string) error { dialAddr := func(addr string) error {
err := c.Dial(ctx, PrmDial{Endpoint: addr}) err := c.Dial(ctx, PrmDial{Endpoint: addr, PrmDialOptions: prm.PrmDialOptions})
if err != nil { if err != nil {
if !prm.FallbackToAvailableAddress { if !prm.FallbackToAvailableAddress {
return err return err