From 0c5deb1a05895b78861e93f57cd3cdb2a579d65b Mon Sep 17 00:00:00 2001 From: Elton Minetto Date: Fri, 7 Apr 2023 10:53:01 -0300 Subject: [PATCH] fix: middleware --- internal/middleware/is_authenticated.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/middleware/is_authenticated.go b/internal/middleware/is_authenticated.go index cd4600b..4009ae9 100644 --- a/internal/middleware/is_authenticated.go +++ b/internal/middleware/is_authenticated.go @@ -19,7 +19,7 @@ func IsAuthenticated(ctx context.Context, telemetry telemetry.Telemetry) func(ne func Handler(ctx context.Context, telemetry telemetry.Telemetry) func(next http.Handler) http.Handler { return func(next http.Handler) http.Handler { fn := func(rw http.ResponseWriter, r *http.Request) { - ctx, span := telemetry.Start(ctx, "IsAuthenticated") + _, span := telemetry.Start(ctx, "IsAuthenticated") defer span.End() errorMessage := "Erro na autenticaĆ§Ć£o" tokenString := r.Header.Get("Authorization")