Ensure db close on http signal shutdown, correct stores to provider

This commit is contained in:
lash
2024-09-10 20:44:10 +01:00
parent dd2468a4d7
commit 8e3ff27bb8
5 changed files with 49 additions and 13 deletions

View File

@@ -39,7 +39,6 @@ func PackKey(typ DataTyp, data []byte) []byte {
}
func ReadEntry(ctx context.Context, store db.Db, sessionId string, typ DataTyp) ([]byte, error) {
store.SetPrefix(db.DATATYPE_USERDATA)
store.SetSession(sessionId)
k := PackKey(typ, []byte(sessionId))