From db127f5b7e924fc5d08b2e7afa7e30adf9978b7b Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Tue, 5 Apr 2022 22:07:04 -0400 Subject: [PATCH] fix(config): don't marshal server config --- internal/config/config.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/internal/config/config.go b/internal/config/config.go index 1c5683a25..f039e49ba 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -25,15 +25,15 @@ import ( // Config is the Soft Serve configuration. type Config struct { - Name string `yaml:"name"` - Host string `yaml:"host"` - Port int `yaml:"port"` - AnonAccess string `yaml:"anon-access"` - AllowKeyless bool `yaml:"allow-keyless"` - Users []User `yaml:"users"` - Repos []Repo `yaml:"repos"` - Source *git.RepoSource - Cfg *config.Config + Name string `yaml:"name"` + Host string `yaml:"host"` + Port int `yaml:"port"` + AnonAccess string `yaml:"anon-access"` + AllowKeyless bool `yaml:"allow-keyless"` + Users []User `yaml:"users"` + Repos []Repo `yaml:"repos"` + Source *git.RepoSource `yaml:"-"` + Cfg *config.Config `yaml:"-"` mtx sync.Mutex }