golangci-lint: minimal changes to make make lint pass again
This commit is contained in:
@@ -14,7 +14,7 @@ func init() {
|
||||
}
|
||||
}
|
||||
|
||||
//nolint:deadcode,unused
|
||||
//nolint:unused
|
||||
func debug(format string, args ...interface{}) {
|
||||
if debugEnabled {
|
||||
fmt.Fprintf(os.Stderr, "rpc/dataconn: %s\n", fmt.Sprintf(format, args...))
|
||||
|
||||
@@ -13,7 +13,7 @@ func init() {
|
||||
}
|
||||
}
|
||||
|
||||
//nolint:deadcode,unused
|
||||
//nolint:unused
|
||||
func debug(format string, args ...interface{}) {
|
||||
if debugEnabled {
|
||||
fmt.Fprintf(os.Stderr, "rpc/dataconn/heartbeatconn: %s\n", fmt.Sprintf(format, args...))
|
||||
|
||||
@@ -29,7 +29,7 @@ func WithLogger(ctx context.Context, log Logger) context.Context {
|
||||
return context.WithValue(ctx, contextKeyLogger, log)
|
||||
}
|
||||
|
||||
//nolint:deadcode,unused
|
||||
//nolint:unused
|
||||
func getLog(ctx context.Context) Logger {
|
||||
log, ok := ctx.Value(contextKeyLogger).(Logger)
|
||||
if !ok {
|
||||
|
||||
@@ -13,7 +13,7 @@ func init() {
|
||||
}
|
||||
}
|
||||
|
||||
//nolint:deadcode,unused
|
||||
//nolint:unused
|
||||
func debug(format string, args ...interface{}) {
|
||||
if debugEnabled {
|
||||
fmt.Fprintf(os.Stderr, "rpc/dataconn/stream: %s\n", fmt.Sprintf(format, args...))
|
||||
|
||||
Reference in New Issue
Block a user