diff options
Diffstat (limited to 'adapter')
-rw-r--r-- | adapter/socketclient/socketclient.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/adapter/socketclient/socketclient.go b/adapter/socketclient/socketclient.go index 1ee067f..867278b 100644 --- a/adapter/socketclient/socketclient.go +++ b/adapter/socketclient/socketclient.go @@ -322,7 +322,7 @@ const ( ) func (c *socketClient) open() error { - var msgCodec codec.MsgCodec + var msgCodec = codec.DefaultCodec // Request socket client create req := &SockclntCreate{ @@ -375,7 +375,7 @@ func (c *socketClient) open() error { } func (c *socketClient) close() error { - msgCodec := new(codec.MsgCodec) + var msgCodec = codec.DefaultCodec req := &SockclntDelete{ Index: c.clientIndex, |