This commit is contained in:
parent
e788693713
commit
be532bec1b
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user