matrix: add log for matrix crypto store init

deleting the crypto DB resulted in InitMatrixCrypto taking ages, added a
Initing/Inited log pair around the function so it's obvious this is the
culprit if any one else faces the same thing.
This commit is contained in:
Harvey Tindall
2025-08-31 17:58:13 +01:00
parent 87c0f54a8d
commit 0783749e6e
4 changed files with 19 additions and 10 deletions

View File

@@ -3,7 +3,10 @@
package main
import "maunium.net/go/mautrix/id"
import (
"github.com/hrfee/jfa-go/logger"
"maunium.net/go/mautrix/id"
)
type Crypto struct{}
@@ -11,7 +14,7 @@ func BuildTagsE2EE() {}
func MatrixE2EE() bool { return false }
func InitMatrixCrypto(d *MatrixDaemon) (err error) {
func InitMatrixCrypto(d *MatrixDaemon, logger *logger.Logger) (err error) {
d.Encryption = false
return
}