From 272534584376c81116db5199fd2e4216e3698192 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 5 Apr 2025 22:22:46 +0800 Subject: scfg: Error out when required directives are missing --- config.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'config.go') 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 { -- cgit v1.2.3