From 6767a3770479e1d4e7e5d60815812ee8afb213a4 Mon Sep 17 00:00:00 2001 From: mountain Date: Tue, 5 Sep 2023 17:14:56 +0900 Subject: [PATCH] =?UTF-8?q?version=20split=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/service.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/service.go b/core/service.go index 9de61ba..0f0c862 100644 --- a/core/service.go +++ b/core/service.go @@ -189,9 +189,8 @@ func (sh *serviceDescription) prepare(mg *Maingate) error { divsForUsers := make(map[string]*DivisionForUser) defaultDivNames := make(map[string]bool) for dn, div := range divs { - defaultDivNames[dn] = true - if div.State == DivisionState_Closed { - continue + if div.State != DivisionState_Closed { + defaultDivNames[dn] = true } divsForUsers[dn] = &div.DivisionForUser @@ -230,6 +229,9 @@ func (sh *serviceDescription) prepare(mg *Maingate) error { sh.divisionsSerialized, _ = json.Marshal(divs) sh.divisionsSplits = make(map[string][]byte) for ver, divnamesT := range sh.VersionSplits { + if ver == "default" { + continue + } divnames := strings.Split(divnamesT, ",") split := make(map[string]*DivisionForUser) for _, divname := range divnames {