Other: Remove unused SyncBuffers setting

This commit is contained in:
Leander Beernaert
2022-11-22 13:59:06 +01:00
parent a2ab5df7ce
commit 0df4f41269
9 changed files with 3 additions and 27 deletions

View File

@ -117,7 +117,6 @@ func (user *User) sync(ctx context.Context) error {
user.updateCh,
user.eventCh,
user.syncWorkers,
user.syncBuffer,
); err != nil {
return fmt.Errorf("failed to sync messages: %w", err)
}
@ -187,7 +186,7 @@ func syncMessages( //nolint:funlen
addrKRs map[string]*crypto.KeyRing,
updateCh map[string]*queue.QueuedChannel[imap.Update],
eventCh *queue.QueuedChannel[events.Event],
syncWorkers, _ int,
syncWorkers int,
) error {
ctx, cancel := context.WithCancel(ctx)
defer cancel()