Skip to content

Commit 92f5b5c

Browse files
authored
Cache user crc32 on db init (fix for #523) (#534)
1 parent 8f3433b commit 92f5b5c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

store/jsondb/jsondb.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ func (o *JsonDB) Init() error {
154154
}
155155

156156
o.conn.Write("users", user.Username, user)
157+
results, _ = o.conn.ReadAll("users")
157158
err = util.ManagePerms(path.Join(path.Join(o.dbPath, "users"), user.Username+".json"))
158159
if err != nil {
159160
return err

0 commit comments

Comments
 (0)