diff --git a/client.go b/client.go index 83db72d..31c9dcf 100644 --- a/client.go +++ b/client.go @@ -34,7 +34,6 @@ type Client struct { nextTag int64 tags map[string]sentenceProcessor mu sync.Mutex - mw sync.Mutex r proto.Reader w proto.Writer diff --git a/client_test.go b/client_test.go index 327f5e3..dd59b1a 100644 --- a/client_test.go +++ b/client_test.go @@ -46,10 +46,9 @@ func newLiveTest(t *testing.T) *liveTest { func (t *liveTest) connect() { cfg := fetchConfig(t.T) - ctx := context.WithValue(context.Background(), "logger", t.T) var err error - t.c, err = DialContext(ctx, cfg.Address, cfg.Username, cfg.Password) + t.c, err = DialContext(context.Background(), cfg.Address, cfg.Username, cfg.Password) require.NoError(t, err) } @@ -70,8 +69,6 @@ func (t *liveTest) getUptime() { ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) defer cancel() - ctx = context.WithValue(ctx, "logger", t.T) - r := t.runContext(ctx, "/system/resource/print") require.Len(t, r.Re, 1, "expected 1 response")