Skip to content

Commit

Permalink
Cache user crc32 on db init (fix for #523) (#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xCA authored Jan 12, 2024
1 parent 8f3433b commit 92f5b5c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions store/jsondb/jsondb.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 92f5b5c

Please sign in to comment.