From c2dbd3122da4e664d61c608384235f3e84514b5a Mon Sep 17 00:00:00 2001 From: Pulkit Kathuria Date: Mon, 22 Jan 2024 11:26:11 +0900 Subject: [PATCH] fix client --- app/pkg/github.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/pkg/github.go b/app/pkg/github.go index 5a5ffc9..f477dce 100644 --- a/app/pkg/github.go +++ b/app/pkg/github.go @@ -15,7 +15,7 @@ import ( type Github struct { body *bytes.Buffer log *logrus.Logger - client *http.Client + client http.Client api string cache *freecache.Cache } @@ -24,7 +24,7 @@ func NewGithub() *Github { return &Github{ body: bytes.NewBuffer([]byte(`{"state":"success", "context": "coveritup", "description": "authenticated"}`)), log: Logger(), - client: &http.Client{}, + client: http.Client{}, api: os.Getenv("GITHUB_API"), cache: db.Cache(), }