[management] Add buffering for getAccount requests during login (#2449)

This commit is contained in:
pascal-fischer
2024-08-20 20:06:01 +02:00
committed by GitHub
parent 8c2d37d3fc
commit 3ed90728e6
4 changed files with 329 additions and 6 deletions

View File

@@ -714,7 +714,7 @@ func (am *DefaultAccountManager) LoginPeer(ctx context.Context, login PeerLogin)
unlockPeer()
unlockPeer = nil
account, err := am.Store.GetAccount(ctx, accountID)
account, err := am.cache.GetAccountWithBackpressure(ctx, accountID)
if err != nil {
return nil, nil, nil, err
}