refactor: Remove unused multierr package and close pool directly

This commit is contained in:
divyam234 2024-06-10 22:41:57 +05:30
parent 5798d89f02
commit df5c554c30

View file

@ -8,7 +8,6 @@ import (
"github.com/divyam234/teldrive/internal/logging" "github.com/divyam234/teldrive/internal/logging"
"github.com/gotd/td/telegram" "github.com/gotd/td/telegram"
"github.com/gotd/td/tg" "github.com/gotd/td/tg"
"go.uber.org/multierr"
"go.uber.org/zap" "go.uber.org/zap"
) )
@ -89,8 +88,6 @@ func (p *pool) Default(ctx context.Context) *tg.Client {
} }
func (p *pool) Close() (err error) { func (p *pool) Close() (err error) {
return p.close()
err = multierr.Append(err, p.close())
return err
} }