From 5294c5740f8ee7904ff8994c27059458cb8f5f6a Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 12 Jan 2025 18:22:02 +0800 Subject: Restructure mta_recv -> mx_recv --- config.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'config.go') 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 -- cgit v1.2.3