Skip to content

Commit

Permalink
Use cloned request in heal registry (#1287)
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
  • Loading branch information
glazychev-art authored May 13, 2022
1 parent 4d9bebd commit 53df7f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/registry/common/heal/ns_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func NewNetworkServiceRegistryClient(ctx context.Context) registry.NetworkServic
}

func (c *healNSClient) Register(ctx context.Context, ns *registry.NetworkService, opts ...grpc.CallOption) (*registry.NetworkService, error) {
resp, err := next.NetworkServiceRegistryClient(ctx).Register(ctx, ns, opts...)
resp, err := next.NetworkServiceRegistryClient(ctx).Register(ctx, ns.Clone(), opts...)

if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion pkg/registry/common/heal/nse_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func NewNetworkServiceEndpointRegistryClient(ctx context.Context) registry.Netwo
}

func (c *healNSEClient) Register(ctx context.Context, nse *registry.NetworkServiceEndpoint, opts ...grpc.CallOption) (*registry.NetworkServiceEndpoint, error) {
resp, err := next.NetworkServiceEndpointRegistryClient(ctx).Register(ctx, nse, opts...)
resp, err := next.NetworkServiceEndpointRegistryClient(ctx).Register(ctx, nse.Clone(), opts...)

if err != nil {
return nil, err
Expand Down

0 comments on commit 53df7f1

Please sign in to comment.