From 280b1c6c83b676ef4e592f4ecf60cb5b54b6a753 Mon Sep 17 00:00:00 2001 From: Ondrej Fabry Date: Tue, 16 Jun 2020 10:40:34 +0200 Subject: Optimize socketclient adapter and add various code improvements This commit includes: Features - optimized [socketclient](adapter/socketclient) adapter and add method to set client name - added list of compatible messages to `CompatibilityError` Fixes - `MsgCodec` will recover panic occurring during a message decoding - calling `Unsubscibe` will close the notification channel Other - improved log messages to provide more relevant info Examples - added more code samples of working with unions in [union example](examples/union-example) - added profiling mode to [perf bench](examples/perf-bench) example - improved [simple client](examples/simple-client) example to work properly even with multiple runs Dependencies - updated `github.com/sirupsen/logrus` dep to `v1.6.0` - updated `github.com/lunixbochs/struc` dep to `v0.0.0-20200521075829-a4cb8d33dbbe` Change-Id: I136a3968ccf9e93760d7ee2b9902fc7e6390a09d Signed-off-by: Ondrej Fabry --- go.mod | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'go.mod') diff --git a/go.mod b/go.mod index cff5c18..09512f5 100644 --- a/go.mod +++ b/go.mod @@ -9,13 +9,13 @@ require ( github.com/golang/protobuf v1.3.2 // indirect github.com/hpcloud/tail v1.0.0 // indirect github.com/kr/pretty v0.1.0 // indirect - github.com/lunixbochs/struc v0.0.0-20190916212049-a5c72983bc42 + github.com/lunixbochs/struc v0.0.0-20200521075829-a4cb8d33dbbe github.com/onsi/ginkgo v1.8.0 // indirect github.com/onsi/gomega v1.1.0 github.com/pkg/profile v1.2.1 - github.com/sirupsen/logrus v1.0.0 + github.com/sirupsen/logrus v1.6.0 github.com/stretchr/testify v1.3.0 // indirect - golang.org/x/sys v0.0.0-20170427041856-9ccfe848b9db // indirect + golang.org/x/sys v0.0.0-20200610111108-226ff32320da // indirect gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect gopkg.in/fsnotify.v1 v1.4.7 // indirect gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect -- cgit 1.2.3-korg