Merge branch 'master' of github.com:didi/nightingale

This commit is contained in:
710leo 2020-03-27 15:04:58 +08:00
commit 18e7201122
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ func pushData(c *gin.Context) {
recvMetricValues := []*dataobj.MetricValue{} recvMetricValues := []*dataobj.MetricValue{}
metricValues := []*dataobj.MetricValue{} metricValues := []*dataobj.MetricValue{}
errors.Dangerous(c.ShouldBind(&recvMetricValues)) errors.Dangerous(c.ShouldBindJSON(&recvMetricValues))
var msg string var msg string
for _, v := range recvMetricValues { for _, v := range recvMetricValues {

View File

@ -21,7 +21,7 @@ func PushData(c *gin.Context) {
recvMetricValues := []*dataobj.MetricValue{} recvMetricValues := []*dataobj.MetricValue{}
metricValues := []*dataobj.MetricValue{} metricValues := []*dataobj.MetricValue{}
errors.Dangerous(c.ShouldBind(&recvMetricValues)) errors.Dangerous(c.ShouldBindJSON(&recvMetricValues))
var msg string var msg string
for _, v := range recvMetricValues { for _, v := range recvMetricValues {