chore: update golangci-lint (#13110)
This commit is contained in:
parent
7cd6f69b4c
commit
e0b95ea391
|
|
@ -25,5 +25,5 @@ jobs:
|
|||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v3
|
||||
with:
|
||||
version: v1.51.2
|
||||
version: v1.52.2
|
||||
args: --timeout 15m0s --verbose --out-${NO_FUTURE}format tab
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
package jsonV1
|
||||
package json_v1
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
package jsonV1
|
||||
package json_v1
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import (
|
|||
|
||||
"github.com/gorilla/mux"
|
||||
"github.com/influxdata/telegraf/plugins/inputs/zipkin/codec"
|
||||
"github.com/influxdata/telegraf/plugins/inputs/zipkin/codec/jsonV1"
|
||||
json_v1 "github.com/influxdata/telegraf/plugins/inputs/zipkin/codec/jsonV1"
|
||||
"github.com/influxdata/telegraf/plugins/inputs/zipkin/codec/thrift"
|
||||
)
|
||||
|
||||
|
|
@ -124,7 +124,7 @@ func (s *SpanHandler) Spans(w http.ResponseWriter, r *http.Request) {
|
|||
func ContentDecoder(r *http.Request) (codec.Decoder, error) {
|
||||
contentType := r.Header.Get("Content-Type")
|
||||
if contentType == "" {
|
||||
return &jsonV1.JSON{}, nil
|
||||
return &json_v1.JSON{}, nil
|
||||
}
|
||||
|
||||
for _, v := range strings.Split(contentType, ",") {
|
||||
|
|
@ -133,7 +133,7 @@ func ContentDecoder(r *http.Request) (codec.Decoder, error) {
|
|||
break
|
||||
}
|
||||
if t == "application/json" {
|
||||
return &jsonV1.JSON{}, nil
|
||||
return &json_v1.JSON{}, nil
|
||||
} else if t == "application/x-thrift" {
|
||||
return &thrift.Thrift{}, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue