mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-01-08 08:10:05 +08:00
refactor: Remove unused multierr package and close pool directly
This commit is contained in:
parent
5798d89f02
commit
df5c554c30
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue