Skip to content

Commit

Permalink
chore(client): remove unused / cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
archaron committed Jun 9, 2024
1 parent caeb8d0 commit ace94d7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 1 addition & 4 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand All @@ -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")

Expand Down

0 comments on commit ace94d7

Please sign in to comment.