-
Notifications
You must be signed in to change notification settings - Fork 833
Update code to fix almost all pre-existing lint errors #2008
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
0fc660e
43520a2
c3564f3
782bd54
18d997f
a60dcbb
2a3a929
e77ea36
62b7efd
ff69505
b666336
fb4161c
ac3f181
e8413ff
9bfd5ef
2dd3252
4dfa046
a8e0f53
0e81880
4d3838f
c8e8f56
aa2ecc6
5d857af
f48805a
6e5b06f
f910457
7d4ef02
eea746e
71c71e2
2e09e2c
fec6e23
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
io/ioutil.WriteFile | ||
io/ioutil.ReadFile | ||
(github.com/go-kit/kit/log.Logger).Log | ||
io.Copy | ||
(github.com/opentracing/opentracing-go.Tracer).Inject |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,7 +75,7 @@ func (i *instrumentedCache) Store(ctx context.Context, keys []string, bufs [][]b | |
} | ||
|
||
method := i.name + ".store" | ||
instr.CollectedRequest(ctx, method, requestDuration, instr.ErrorCode, func(ctx context.Context) error { | ||
_ = instr.CollectedRequest(ctx, method, requestDuration, instr.ErrorCode, func(ctx context.Context) error { | ||
|
||
sp := ot.SpanFromContext(ctx) | ||
sp.LogFields(otlog.Int("keys", len(keys))) | ||
i.Cache.Store(ctx, keys, bufs) | ||
|
@@ -91,7 +91,7 @@ func (i *instrumentedCache) Fetch(ctx context.Context, keys []string) ([]string, | |
method = i.name + ".fetch" | ||
) | ||
|
||
instr.CollectedRequest(ctx, method, requestDuration, instr.ErrorCode, func(ctx context.Context) error { | ||
_ = instr.CollectedRequest(ctx, method, requestDuration, instr.ErrorCode, func(ctx context.Context) error { | ||
sp := ot.SpanFromContext(ctx) | ||
sp.LogFields(otlog.Int("keys requested", len(keys))) | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.