Skip to content

Commit

Permalink
Fix to use mechanismtranslation properly (#44)
Browse files Browse the repository at this point in the history
Signed-off-by: Ed Warnicke <hagbard@gmail.com>
  • Loading branch information
edwarnicke authored Dec 6, 2020
1 parent 21d9293 commit 3582614
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/networkservice/chains/xconnectns/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import (
"github.com/networkservicemesh/sdk/pkg/networkservice/common/mechanisms"
"github.com/networkservicemesh/sdk/pkg/networkservice/common/mechanisms/recvfd"
"github.com/networkservicemesh/sdk/pkg/networkservice/common/mechanisms/sendfd"
"github.com/networkservicemesh/sdk/pkg/networkservice/common/mechanismtranslation"
"github.com/networkservicemesh/sdk/pkg/networkservice/core/adapters"
"github.com/networkservicemesh/sdk/pkg/tools/addressof"
"github.com/networkservicemesh/sdk/pkg/tools/token"
Expand Down Expand Up @@ -69,11 +70,12 @@ func NewServer(ctx context.Context, name string, authzServer networkservice.Netw
clienturl.NewServer(clientURL),
connect.NewServer(
ctx,
client.NewCrossConnectClientFactory(
client.NewClientFactory(
name,
// What to call onHeal
addressof.NetworkServiceClient(adapters.NewServerToClient(rv)),
tokenGenerator,
mechanismtranslation.NewClient(),
connectioncontextkernel.NewClient(),
tag.NewClient(ctx, vppConn),
// mechanisms
Expand Down

0 comments on commit 3582614

Please sign in to comment.