refactor rpcx, export WithDialOption and WithTimeout
This commit is contained in:
@@ -20,11 +20,11 @@ type (
|
||||
}
|
||||
|
||||
PortalServer struct {
|
||||
userRpc *rpcx.RpcClient
|
||||
userRpc rpcx.Client
|
||||
}
|
||||
)
|
||||
|
||||
func NewPortalServer(client *rpcx.RpcClient) *PortalServer {
|
||||
func NewPortalServer(client rpcx.Client) *PortalServer {
|
||||
return &PortalServer{
|
||||
userRpc: client,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user