diff options
author | Runxi Yu <me@runxiyu.org> | 2025-04-06 01:41:43 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-04-06 01:41:43 +0800 |
commit | 1351bbae5610caa1cb6ac9b727ff5296b157273c (patch) | |
tree | 01b2c081816dc75e06d32231948fed3d8df104d1 /config.go | |
parent | Ensure server is ready before Run() (diff) | |
download | forge-1351bbae5610caa1cb6ac9b727ff5296b157273c.tar.gz forge-1351bbae5610caa1cb6ac9b727ff5296b157273c.tar.zst forge-1351bbae5610caa1cb6ac9b727ff5296b157273c.zip |
Slight refactor on NewServer
Diffstat (limited to 'config.go')
-rw-r--r-- | config.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -61,7 +61,7 @@ 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. -func (s *Server) LoadConfig(path string) (err error) { +func (s *Server) loadConfig(path string) (err error) { var configFile *os.File if configFile, err = os.Open(path); err != nil { return err |