fix issues reported by gofmt and spelling typo (#3127)

pull/3020/merge
Lynn Lin 7 years ago committed by Brian Brazil
parent 923be6a418
commit 1bf25dc1b2

@ -442,7 +442,7 @@ func TestLabelSetNotReused(t *testing.T) {
func makeInputTargetGroup() *config.TargetGroup { func makeInputTargetGroup() *config.TargetGroup {
return &config.TargetGroup{ return &config.TargetGroup{
Targets: []model.LabelSet{ Targets: []model.LabelSet{
model.LabelSet{ {
model.AddressLabel: model.LabelValue("1.1.1.1:9090"), model.AddressLabel: model.LabelValue("1.1.1.1:9090"),
model.LabelName("notcommon1"): model.LabelValue("label"), model.LabelName("notcommon1"): model.LabelValue("label"),
}, },

@ -37,7 +37,7 @@ func (rt *roundTripCheckRequest) RoundTrip(r *http.Request) (*http.Response, err
} }
// NewRoundTripCheckRequest creates a new instance of a type that implements http.RoundTripper, // NewRoundTripCheckRequest creates a new instance of a type that implements http.RoundTripper,
// wich before returning theResponse and theError, executes checkRequest against a http.Request. // which before returning theResponse and theError, executes checkRequest against a http.Request.
func NewRoundTripCheckRequest(checkRequest func(*http.Request), theResponse *http.Response, theError error) http.RoundTripper { func NewRoundTripCheckRequest(checkRequest func(*http.Request), theResponse *http.Response, theError error) http.RoundTripper {
return &roundTripCheckRequest{ return &roundTripCheckRequest{
checkRequest: checkRequest, checkRequest: checkRequest,

Loading…
Cancel
Save