From 1351bbae5610caa1cb6ac9b727ff5296b157273c Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 6 Apr 2025 01:41:43 +0800 Subject: Slight refactor on NewServer --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config.go') 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 -- cgit v1.2.3