aboutsummaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-06 01:41:43 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-06 01:41:43 +0800
commit1351bbae5610caa1cb6ac9b727ff5296b157273c (patch)
tree01b2c081816dc75e06d32231948fed3d8df104d1 /config.go
parentEnsure server is ready before Run() (diff)
downloadforge-1351bbae5610caa1cb6ac9b727ff5296b157273c.tar.gz
forge-1351bbae5610caa1cb6ac9b727ff5296b157273c.tar.zst
forge-1351bbae5610caa1cb6ac9b727ff5296b157273c.zip
Slight refactor on NewServer
Diffstat (limited to 'config.go')
-rw-r--r--config.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.go b/config.go
index d845ce8..8ed6eb7 100644
--- a/config.go
+++ b/config.go
@@ -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