|
@ -8,16 +8,16 @@ import ( |
|
|
// the application in general is not meant to be interfaced
|
|
|
// the application in general is not meant to be interfaced
|
|
|
// with concurrent callers.
|
|
|
// with concurrent callers.
|
|
|
type remoteAppConn struct { |
|
|
type remoteAppConn struct { |
|
|
*tmspcli.TMSPClient |
|
|
|
|
|
|
|
|
*tmspcli.Client |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func NewRemoteAppConn(addr string) (*remoteAppConn, error) { |
|
|
func NewRemoteAppConn(addr string) (*remoteAppConn, error) { |
|
|
client, err := tmspcli.NewTMSPClient(addr) |
|
|
|
|
|
|
|
|
client, err := tmspcli.NewClient(addr) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return nil, err |
|
|
return nil, err |
|
|
} |
|
|
} |
|
|
appConn := &remoteAppConn{ |
|
|
appConn := &remoteAppConn{ |
|
|
TMSPClient: client, |
|
|
|
|
|
|
|
|
Client: client, |
|
|
} |
|
|
} |
|
|
return appConn, nil |
|
|
return appConn, nil |
|
|
} |
|
|
} |