Cache user crc32 on db init (fix for #523) (#534)

This commit is contained in:
0xCA
2024-01-13 01:30:07 +05:00
committed by GitHub
parent 8f3433b714
commit 92f5b5c8b1

View File

@@ -154,6 +154,7 @@ func (o *JsonDB) Init() error {
}
o.conn.Write("users", user.Username, user)
results, _ = o.conn.ReadAll("users")
err = util.ManagePerms(path.Join(path.Join(o.dbPath, "users"), user.Username+".json"))
if err != nil {
return err