diff options
author | Ondrej Fabry <ofabry@cisco.com> | 2020-06-23 14:10:53 +0200 |
---|---|---|
committer | Ondrej Fabry <ofabry@cisco.com> | 2020-06-24 08:17:33 +0200 |
commit | ceed73403bdb61387d04be8b47183e9c4a970749 (patch) | |
tree | 3f48a49051672efb44945b279b9f69693bc48540 /adapter/socketclient/socketclient.go | |
parent | 94620e85f0bdbb054af07ce3670fadc1f76cfdf0 (diff) |
Fix codec fallback and generate type imports
Change-Id: Idd76c7f19d952939caf153928ac60175845078ff
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Diffstat (limited to 'adapter/socketclient/socketclient.go')
-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, |