[#2] rpc/client: Remove additional wrapper
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
513e3e137d
commit
cc8da15242
12 changed files with 82 additions and 268 deletions
|
@ -9,14 +9,8 @@ import (
|
|||
// Returns non-nil result after the first Init() call
|
||||
// completed without a connection error.
|
||||
//
|
||||
// Conn is NPE-safe: returns nil if Client is nil.
|
||||
//
|
||||
// Client should not be used after Close() call
|
||||
// on the connection: behavior is undefined.
|
||||
func (c *Client) Conn() io.Closer {
|
||||
if c != nil {
|
||||
return c.gRPCClient.Conn()
|
||||
}
|
||||
|
||||
return nil
|
||||
return c.conn
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue