Add missing error check.
Change-Id: I6fcf6d5d50333ff0c205fd87cdb9430f1bc02c43
This commit is contained in:
parent
96297bcbae
commit
b09d588309
|
@ -360,6 +360,9 @@ func (r *registry) Push(job, instance, addr, method string) error {
|
|||
return err
|
||||
}
|
||||
req, err := http.NewRequest(method, u, buf)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
req.Header.Set(contentTypeHeader, DelimitedTelemetryContentType)
|
||||
resp, err := http.DefaultClient.Do(req)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue