From 23ffdbdc73b614cb88de73f107d0f763251971b5 Mon Sep 17 00:00:00 2001 From: Christian Date: Wed, 10 Jun 2020 13:22:03 -0500 Subject: [PATCH] Use virtual connection for MariaDB to reconnect automatically --- server/db.rkt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/db.rkt b/server/db.rkt index 2ef0835..55542b6 100644 --- a/server/db.rkt +++ b/server/db.rkt @@ -8,8 +8,6 @@ redis-conn mysql-conn) - -;; This should be a racket parameter (define (connect-redis) (make-redis)) @@ -26,4 +24,6 @@ #:password sql-pass #:database "db_webqtl_s")) -(define mysql-conn (make-parameter (connect-sql))) +(define mysql-conn + (make-parameter + (virtual-connection connect-sql)))