mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-11 13:16:53 +00:00
Other: Bump liteapi version to fix goroutine leaks
This commit is contained in:
@ -373,9 +373,7 @@ func (user *User) Close() error {
|
||||
user.waitSync()
|
||||
|
||||
// Close the user's API client.
|
||||
if err := user.client.Close(); err != nil {
|
||||
logrus.WithError(err).Error("Failed to close API client")
|
||||
}
|
||||
user.client.Close()
|
||||
|
||||
// Close the user's update channels.
|
||||
user.updateCh.Values(func(updateCh []*queue.QueuedChannel[imap.Update]) {
|
||||
|
||||
@ -126,7 +126,7 @@ func withAccount(tb testing.TB, s *server.Server, username, password string, ema
|
||||
func withUser(tb testing.TB, ctx context.Context, _ *server.Server, m *liteapi.Manager, username, password string, fn func(*User)) { //nolint:unparam,revive
|
||||
client, apiAuth, err := m.NewClientWithLogin(ctx, username, []byte(password))
|
||||
require.NoError(tb, err)
|
||||
defer func() { require.NoError(tb, client.Close()) }()
|
||||
defer client.Close()
|
||||
|
||||
apiUser, err := client.GetUser(ctx)
|
||||
require.NoError(tb, err)
|
||||
|
||||
Reference in New Issue
Block a user