From b634c950d07254a6728355319ca475a3bcbfa8a2 Mon Sep 17 00:00:00 2001 From: mkelvers Date: Sat, 20 Jun 2026 19:02:21 +0200 Subject: [PATCH] refactor: use root errlog in graphql --- pkg/graphql.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/graphql.go b/pkg/graphql.go index e69cb94..0cb9953 100644 --- a/pkg/graphql.go +++ b/pkg/graphql.go @@ -7,7 +7,6 @@ import ( "encoding/json" "fmt" "io" - "mal/pkg/errlog" "net/http" ) @@ -53,7 +52,7 @@ func Post[T any](ctx context.Context, httpClient *http.Client, url string, query return zero, fmt.Errorf("graphql: execute request: %w", err) } defer func() { - errlog.Log("failed to close graphql response body", resp.Body.Close()) + Log("failed to close graphql response body", resp.Body.Close()) }() bodyMax := opts.BodyMax