fix(GODT-2913): Reduce the number of configuration failure detected.

This commit is contained in:
Romain Le Jeune
2023-09-08 11:53:24 +00:00
parent 79524185a8
commit 6269b1ab88
7 changed files with 11 additions and 13 deletions

View File

@ -32,7 +32,7 @@ type sharedIdentity interface {
GetPrimaryAddress() (proton.Address, error)
GetAddresses() []proton.Address
WithAddrKR(addrID string, fn func(userKR, addrKR *crypto.KeyRing) error) error
CheckAuth(email string, password []byte, telemetry Telemetry) (string, error)
CheckAuth(email string, password []byte) (string, error)
}
type rwIdentity struct {
@ -102,11 +102,11 @@ func (r *rwIdentity) WithAddrKRs(fn func(*crypto.KeyRing, map[string]*crypto.Key
return r.identity.WithAddrKRs(r.keyPassProvider.KeyPass(), fn)
}
func (r *rwIdentity) CheckAuth(email string, password []byte, telemetry Telemetry) (string, error) {
func (r *rwIdentity) CheckAuth(email string, password []byte) (string, error) {
r.lock.RLock()
defer r.lock.RUnlock()
return r.identity.CheckAuth(email, password, r.bridgePassProvider, telemetry)
return r.identity.CheckAuth(email, password, r.bridgePassProvider)
}
func (r *rwIdentity) Write(f func(identity *useridentity.State) error) error {