mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
metrics/librato: use http package to replace http method names (#26535)
This commit is contained in:
parent
40f47a641b
commit
76320b4b98
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ func (lc *LibratoClient) PostMetrics(batch Batch) (err error) {
|
|||
return
|
||||
}
|
||||
|
||||
if req, err = http.NewRequest("POST", MetricsPostUrl, bytes.NewBuffer(js)); err != nil {
|
||||
if req, err = http.NewRequest(http.MethodPost, MetricsPostUrl, bytes.NewBuffer(js)); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue