diff --git a/pkg/router/routerclient/client.go b/pkg/router/routerclient/client.go index 6a0195b1d6..2b2aa4858d 100644 --- a/pkg/router/routerclient/client.go +++ b/pkg/router/routerclient/client.go @@ -15,7 +15,7 @@ const rpcName = "RPCGateway" // Client is an RPC client for router. type Client struct { - s *dmsg.Stream + s *dmsg.Stream rpc *rpc.Client } @@ -27,7 +27,7 @@ func NewClient(ctx context.Context, dmsgC *dmsg.Client, pk cipher.PubKey) (*Clie } client := &Client{ - s: s, + s: s, rpc: rpc.NewClient(s.Conn), } return client, nil