From df5c554c3043dd5a129999460f268599288762b5 Mon Sep 17 00:00:00 2001 From: divyam234 <47589864+divyam234@users.noreply.github.com> Date: Mon, 10 Jun 2024 22:41:57 +0530 Subject: [PATCH] refactor: Remove unused multierr package and close pool directly --- internal/pool/pool.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/internal/pool/pool.go b/internal/pool/pool.go index f829c19..06703ea 100644 --- a/internal/pool/pool.go +++ b/internal/pool/pool.go @@ -8,7 +8,6 @@ import ( "github.com/divyam234/teldrive/internal/logging" "github.com/gotd/td/telegram" "github.com/gotd/td/tg" - "go.uber.org/multierr" "go.uber.org/zap" ) @@ -89,8 +88,6 @@ func (p *pool) Default(ctx context.Context) *tg.Client { } func (p *pool) Close() (err error) { + return p.close() - err = multierr.Append(err, p.close()) - - return err }