From a2dab0869d90fd925b60d1be6eab04af1a2eaac2 Mon Sep 17 00:00:00 2001 From: arzumify Date: Fri, 15 Nov 2024 16:34:40 +0000 Subject: [PATCH] Made mem work correctly Signed-off-by: arzumify --- services-src/auth/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services-src/auth/main.go b/services-src/auth/main.go index b8720b8..5771018 100644 --- a/services-src/auth/main.go +++ b/services-src/auth/main.go @@ -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) }