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

This commit is contained in:
0xCA 2024-01-11 19:33:29 +05:00
parent 7856ce9555
commit 32339d5d5a

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