Skip to content

Commit

Permalink
Use virtual connection for MariaDB to reconnect automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
chfi committed Jun 10, 2020
1 parent f8134b2 commit 23ffdbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/db.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
redis-conn
mysql-conn)


;; This should be a racket parameter
(define (connect-redis)
(make-redis))

Expand All @@ -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)))

0 comments on commit 23ffdbd

Please sign in to comment.