aboutsummaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-05 22:22:46 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-05 22:23:09 +0800
commit272534584376c81116db5199fd2e4216e3698192 (patch)
tree72fdac8c31f0d92e77f407f3cf7f9991cdb8724c /config.go
parentMove scfg into the repo and don't error out on unknown fields (diff)
downloadforge-272534584376c81116db5199fd2e4216e3698192.tar.gz
forge-272534584376c81116db5199fd2e4216e3698192.tar.zst
forge-272534584376c81116db5199fd2e4216e3698192.zip
scfg: Error out when required directives are missingv0.1.25
Diffstat (limited to 'config.go')
-rw-r--r--config.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/config.go b/config.go
index 2158721..abb71dd 100644
--- a/config.go
+++ b/config.go
@@ -69,8 +69,6 @@ type Config struct {
// it to the global [config] struct. This may race with concurrent reads from
// [config]; additional synchronization is necessary if the configuration is to
// be made reloadable.
-//
-// TODO: Error out when there are missing fields
func (s *Server) LoadConfig(path string) (err error) {
var configFile *os.File
if configFile, err = os.Open(path); err != nil {