x
Some checks failed
Build docker and publish / build (20.15.1) (push) Failing after 5m23s

This commit is contained in:
shanshanzhong 2025-09-26 19:25:47 -07:00
parent e788693713
commit be532bec1b

View File

@ -66,11 +66,11 @@ func (l *GetStatLogic) GetStat() (resp *types.GetStatResponse, err error) {
country := 0 country := 0
protocolDict := make(map[string]void) protocolDict := make(map[string]struct{})
var protocol []string var protocol []string
l.svcCtx.DB.Model(&server.Server{}).Where("enable = true").Pluck("protocol", &protocol) l.svcCtx.DB.Model(&server.Server{}).Where("enable = true").Pluck("protocol", &protocol)
for _, p := range protocol { for _, p := range protocol {
protocolDict[p] = v protocolDict[p] = struct{}{}
} }
protocol = nil protocol = nil
for p := range protocolDict { for p := range protocolDict {