aboutsummaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'config.go')
-rw-r--r--config.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/config.go b/config.go
index f8f575e..c58071b 100644
--- a/config.go
+++ b/config.go
@@ -12,8 +12,7 @@ import (
)
var config struct {
- Server_name string `scfg:"server_name"`
- Routes map[string]string `scfg:"routes"`
+ Server_name string `scfg:"server_name"`
TLS struct {
Cert string `scfg:"cert"`
Key string `scfg:"key"`
@@ -25,8 +24,8 @@ var config struct {
_tls_config *tls.Config
}
var (
- config_mutex sync.RWMutex // covers things like the database too
- global_db *pgxpool.Pool
+ config_mutex sync.RWMutex // covers things like the database too
+ global_db *pgxpool.Pool // only call Close() after replacing this global variable
)
// load_config loads the configuration file and sets up global things according