diff options
author | Christopher Baines <mail@cbaines.net> | 2019-07-12 19:45:41 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2019-07-12 19:49:26 +0100 |
commit | 743cec7cb675dc6cc792a01daf898c011fc20fc7 (patch) | |
tree | 2040ed787544470a2525307e2f7479d3f29e5a90 /guix-data-service/web | |
parent | 1b5db7adac298e4f0d7e6c9024fc31ebabb4a994 (diff) | |
download | data-service-743cec7cb675dc6cc792a01daf898c011fc20fc7.tar data-service-743cec7cb675dc6cc792a01daf898c011fc20fc7.tar.gz |
Associate a name with database connections
This helps when working out which connection to the database is doing what.
Diffstat (limited to 'guix-data-service/web')
-rw-r--r-- | guix-data-service/web/controller.scm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/guix-data-service/web/controller.scm b/guix-data-service/web/controller.scm index 6cdcd8b..66bc893 100644 --- a/guix-data-service/web/controller.scm +++ b/guix-data-service/web/controller.scm @@ -568,6 +568,7 @@ #t (lambda () (with-postgresql-connection + "web healthcheck" (lambda (conn) (number? (string->number @@ -585,6 +586,7 @@ 500)))) (_ (with-postgresql-connection + "web" (lambda (conn) (controller-with-database-connection request method-and-path-components |