Made mem work correctly

Signed-off-by: arzumify <jliwin98@danwin1210.de>
This commit is contained in:
Tracker-Friendly 2024-11-15 16:34:40 +00:00
parent 684c9d6d48
commit a2dab0869d
1 changed files with 2 additions and 1 deletions

View File

@ -236,7 +236,8 @@ func Main(information library.ServiceInitializationInformation) {
}
}
// Set up the in-memory cache
mem, err := sql.Open("sqlite3", "file:"+ServiceInformation.ServiceID.String()+"?mode=memory&cache=shared")
var err error
mem, err = sql.Open("sqlite3", "file:"+ServiceInformation.ServiceID.String()+"?mode=memory&cache=shared")
if err != nil {
logFunc(err.Error(), 3, information)
}