Skip to content

Commit

Permalink
disable heal and retry in registry clients of forwarder
Browse files Browse the repository at this point in the history
Signed-off-by: NikitaSkrynnik <nikita.skrynnik@xored.com>
  • Loading branch information
NikitaSkrynnik committed Dec 26, 2024
1 parent 014fe3a commit 92a6125
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/networkservice/chains/forwarder/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ import (
"github.com/networkservicemesh/sdk/pkg/tools/token"

registryclient "github.com/networkservicemesh/sdk/pkg/registry/chains/client"
"github.com/networkservicemesh/sdk/pkg/registry/common/null"
registryrecvfd "github.com/networkservicemesh/sdk/pkg/registry/common/recvfd"
registrysendfd "github.com/networkservicemesh/sdk/pkg/registry/common/sendfd"

Expand Down Expand Up @@ -102,11 +103,16 @@ func NewServer(ctx context.Context, tokenGenerator token.GeneratorFunc, vppConn
),
registryclient.WithDialTimeout(opts.dialTimeout),
registryclient.WithDialOptions(opts.dialOpts...),
registryclient.WithNSEHealClient(null.NewNetworkServiceEndpointRegistryClient()),
registryclient.WithNSERetryClient(null.NewNetworkServiceEndpointRegistryClient()),
)
nsClient := registryclient.NewNetworkServiceRegistryClient(ctx,
registryclient.WithClientURL(opts.clientURL),
registryclient.WithDialTimeout(opts.dialTimeout),
registryclient.WithDialOptions(opts.dialOpts...))
registryclient.WithDialOptions(opts.dialOpts...),
registryclient.WithNSHealClient(null.NewNetworkServiceRegistryClient()),
registryclient.WithNSRetryClient(null.NewNetworkServiceRegistryClient()),
)

ikev2Key, err := ipsec.GenerateRSAKey()
if err != nil {
Expand Down

0 comments on commit 92a6125

Please sign in to comment.