From be532bec1b3e04b6c5148b4e3db5c61d78a3266a Mon Sep 17 00:00:00 2001 From: shanshanzhong Date: Fri, 26 Sep 2025 19:25:47 -0700 Subject: [PATCH] x --- internal/logic/common/getStatLogic.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/logic/common/getStatLogic.go b/internal/logic/common/getStatLogic.go index 4991d86..a40bde2 100644 --- a/internal/logic/common/getStatLogic.go +++ b/internal/logic/common/getStatLogic.go @@ -66,11 +66,11 @@ func (l *GetStatLogic) GetStat() (resp *types.GetStatResponse, err error) { country := 0 - protocolDict := make(map[string]void) + protocolDict := make(map[string]struct{}) var protocol []string l.svcCtx.DB.Model(&server.Server{}).Where("enable = true").Pluck("protocol", &protocol) for _, p := range protocol { - protocolDict[p] = v + protocolDict[p] = struct{}{} } protocol = nil for p := range protocolDict {