Fix typos
Signed-off-by: Karsten Weiss <knweiss@gmail.com>
This commit is contained in:
parent
245fde70cb
commit
958ea82988
|
@ -89,7 +89,7 @@ func TestClientURL(t *testing.T) {
|
||||||
address: "http://localhost:9090",
|
address: "http://localhost:9090",
|
||||||
endpoint: "/test/:param",
|
endpoint: "/test/:param",
|
||||||
args: map[string]string{
|
args: map[string]string{
|
||||||
"nonexistant": "content",
|
"nonexistent": "content",
|
||||||
},
|
},
|
||||||
expected: "http://localhost:9090/test/:param",
|
expected: "http://localhost:9090/test/:param",
|
||||||
},
|
},
|
||||||
|
|
|
@ -121,7 +121,7 @@ the_count 0
|
||||||
t.Errorf("got HTTP status code %d, want %d", got, want)
|
t.Errorf("got HTTP status code %d, want %d", got, want)
|
||||||
}
|
}
|
||||||
if got := logBuf.String(); got != wantMsg {
|
if got := logBuf.String(); got != wantMsg {
|
||||||
t.Errorf("got log message:\n%s\nwant log mesage:\n%s\n", got, wantMsg)
|
t.Errorf("got log message:\n%s\nwant log message:\n%s\n", got, wantMsg)
|
||||||
}
|
}
|
||||||
if got := writer.Body.String(); got != wantErrorBody {
|
if got := writer.Body.String(); got != wantErrorBody {
|
||||||
t.Errorf("got body:\n%s\nwant body:\n%s\n", got, wantErrorBody)
|
t.Errorf("got body:\n%s\nwant body:\n%s\n", got, wantErrorBody)
|
||||||
|
|
|
@ -66,7 +66,7 @@ type Pusher struct {
|
||||||
username, password string
|
username, password string
|
||||||
}
|
}
|
||||||
|
|
||||||
// New creates a new Pusher to push to the provided URL withe the provided job
|
// New creates a new Pusher to push to the provided URL with the provided job
|
||||||
// name. You can use just host:port or ip:port as url, in which case “http://”
|
// name. You can use just host:port or ip:port as url, in which case “http://”
|
||||||
// is added automatically. Alternatively, include the schema in the
|
// is added automatically. Alternatively, include the schema in the
|
||||||
// URL. However, do not include the “/metrics/jobs/…” part.
|
// URL. However, do not include the “/metrics/jobs/…” part.
|
||||||
|
|
|
@ -437,7 +437,7 @@ collectLoop:
|
||||||
))
|
))
|
||||||
default:
|
default:
|
||||||
if goroutineBudget <= 0 || len(collectors) == 0 {
|
if goroutineBudget <= 0 || len(collectors) == 0 {
|
||||||
// All collectors are aleady being worked on or
|
// All collectors are already being worked on or
|
||||||
// we have already as many goroutines started as
|
// we have already as many goroutines started as
|
||||||
// there are collectors. Just process metrics
|
// there are collectors. Just process metrics
|
||||||
// from now on.
|
// from now on.
|
||||||
|
|
Loading…
Reference in New Issue