mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 20:56:51 +00:00
Other: Read sync workers setting from vault
This commit is contained in:
@ -74,6 +74,8 @@ type User struct {
|
||||
abortable async.Abortable
|
||||
goSync func()
|
||||
|
||||
syncWorkers int
|
||||
syncBuffer int
|
||||
showAllMail uint32
|
||||
}
|
||||
|
||||
@ -85,6 +87,7 @@ func New(
|
||||
encVault *vault.User,
|
||||
client *liteapi.Client,
|
||||
apiUser liteapi.User,
|
||||
syncWorkers, syncBuffer int,
|
||||
showAllMail bool,
|
||||
) (*User, error) { //nolint:funlen
|
||||
logrus.WithField("userID", apiUser.ID).Debug("Creating new user")
|
||||
@ -158,6 +161,8 @@ func New(
|
||||
|
||||
tasks: xsync.NewGroup(context.Background()),
|
||||
|
||||
syncWorkers: syncWorkers,
|
||||
syncBuffer: syncBuffer,
|
||||
showAllMail: b32(showAllMail),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user