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 }