chore: update go-mmkv dependency to v0.1.6 and refactor QMC key merging logic

This commit is contained in:
鲁树人
2026-10-19 23:18:50 +09:00
parent 8864b11d4a
commit 89cd9d13c3
5 changed files with 14 additions and 25 deletions
-10
View File
@@ -10,16 +10,6 @@ import (
"go.uber.org/zap"
)
func Merge(keys ...common.QMCKeys) common.QMCKeys {
result := make(common.QMCKeys)
for _, k := range keys {
for key, value := range k {
result[utils.NormalizeUnicode(key)] = utils.NormalizeUnicode(value)
}
}
return result
}
func LoadFromPath(path string, key string, logger *zap.Logger) (result common.QMCKeys, err error) {
mmkv_path := path
mmkv_crc := path + ".crc"