mirror of
https://github.com/mjl-/mox.git
synced 2025-06-27 22:28:16 +03:00
fix findings from gopls
This commit is contained in:
parent
aff279711c
commit
70bbfc8f10
@ -389,7 +389,7 @@ func xbackupctl(ctx context.Context, xctl *ctl) {
|
||||
srcAcmeDir := filepath.Join(srcDataDir, "acme")
|
||||
if _, err := os.Stat(srcAcmeDir); err == nil {
|
||||
backupDir("acme")
|
||||
} else if err != nil && !os.IsNotExist(err) {
|
||||
} else if !os.IsNotExist(err) {
|
||||
xerrx("copying acme/", err)
|
||||
}
|
||||
|
||||
|
2
main.go
2
main.go
@ -3974,7 +3974,7 @@ Opens database files directly, not going through a running mox instance.
|
||||
return nil
|
||||
}
|
||||
|
||||
wq := moxio.NewWorkQueue[store.Message, threadPrep](procs, workqueuesize, prepareMessages, processMessage)
|
||||
wq := moxio.NewWorkQueue(procs, workqueuesize, prepareMessages, processMessage)
|
||||
|
||||
err = a.DB.Write(context.Background(), func(tx *bstore.Tx) error {
|
||||
q := bstore.QueryTx[store.Message](tx)
|
||||
|
@ -348,7 +348,7 @@ possibly making them potentially no longer readable by the previous version.
|
||||
if du.MessageSize != totalSize {
|
||||
checkf(errors.New(`wrong total message size, see mox recalculatemailboxcounts"`), dbpath, "account has wrong total message size %d, should be %d", du.MessageSize, totalSize)
|
||||
}
|
||||
} else if err != nil && !errors.Is(err, bstore.ErrAbsent) {
|
||||
} else if !errors.Is(err, bstore.ErrAbsent) {
|
||||
checkf(err, dbpath, "get disk usage")
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user