mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-29 03:20:24 +08:00
优化代码
This commit is contained in:
@@ -109,8 +109,8 @@ func (this *NodeIPAddressThresholdService) FindAllEnabledNodeIPAddressThresholds
|
||||
for _, threshold := range thresholds {
|
||||
pbThresholds = append(pbThresholds, &pb.NodeIPAddressThreshold{
|
||||
Id: int64(threshold.Id),
|
||||
ItemsJSON: []byte(threshold.Items),
|
||||
ActionsJSON: []byte(threshold.Actions),
|
||||
ItemsJSON: threshold.Items,
|
||||
ActionsJSON: threshold.Actions,
|
||||
})
|
||||
}
|
||||
return &pb.FindAllEnabledNodeIPAddressThresholdsResponse{NodeIPAddressThresholds: pbThresholds}, nil
|
||||
|
||||
Reference in New Issue
Block a user