summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-02-11 12:50:08 +0100
committerxengineering <me@xengineering.eu>2023-02-11 12:50:08 +0100
commit8e166f100697c5a497aa68349c20a6cb88b5503f (patch)
tree9d8e73ed61e5cf398cff07e3b50ea3ce588ddaa8 /main.go
parent8bc32d9b5ab404c002e0e0d1f4063a6442ade002 (diff)
downloadceres-8e166f100697c5a497aa68349c20a6cb88b5503f.tar
ceres-8e166f100697c5a497aa68349c20a6cb88b5503f.tar.zst
ceres-8e166f100697c5a497aa68349c20a6cb88b5503f.zip
Migrate database to global config struct
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 28e6554..cd32eb0 100644
--- a/main.go
+++ b/main.go
@@ -10,6 +10,6 @@ var config RuntimeConfig
func main() {
config = GetRuntimeConfig()
log.Printf("Starting ceres with config file '%s'\n", config.Path)
- db := InitDatabase(config.Database)
+ db := InitDatabase()
runServer(config.Http, &db)
}