From dee96100a4c259581ee27be8426ee7cb3382aa8b Mon Sep 17 00:00:00 2001 From: Stefan Majer Date: Sat, 27 Jan 2024 16:09:42 +0100 Subject: [PATCH] linter fixes --- client/main.go | 2 +- server/main.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/main.go b/client/main.go index f85aa01..886ec53 100644 --- a/client/main.go +++ b/client/main.go @@ -48,7 +48,7 @@ func main() { if err != nil { logger.Error(err.Error()) } - tenantExample(c, logger) + err = tenantExample(c, logger) if err != nil { logger.Error(err.Error()) } diff --git a/server/main.go b/server/main.go index 896298b..96cb066 100644 --- a/server/main.go +++ b/server/main.go @@ -197,14 +197,14 @@ func run() { grpc.Creds(creds), grpc.ChainUnaryInterceptor( // Order matters e.g. tracing interceptor have to create span first for the later exemplars to work. - otelgrpc.UnaryServerInterceptor(), + otelgrpc.UnaryServerInterceptor(), // nolint:staticcheck srvMetrics.UnaryServerInterceptor(), logging.UnaryServerInterceptor(interceptorLogger(logger)), selector.UnaryServerInterceptor(grpcauth.UnaryServerInterceptor(auther.Auth), selector.MatchFunc(allButHealthZ)), recovery.UnaryServerInterceptor(recovery.WithRecoveryHandler(grpcPanicRecoveryHandler)), ), grpc.ChainStreamInterceptor( - otelgrpc.StreamServerInterceptor(), + otelgrpc.StreamServerInterceptor(), // nolint:staticcheck srvMetrics.StreamServerInterceptor(grpcprom.WithExemplarFromContext(exemplarFromContext)), logging.StreamServerInterceptor(interceptorLogger(logger)), selector.StreamServerInterceptor(grpcauth.StreamServerInterceptor(auther.Auth), selector.MatchFunc(allButHealthZ)),