| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Return info annotations in addition to warnings in the API (#1963) * Return info annotations in addition to warnings in the API Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com> * Make breaking change to API to cleanly separate warning and info annotations like Prometheus does Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com> * Extend the breaking changes to other APIs Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com> --------- Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com> | 1 个月前 | |
fix: respect context cancellation in httpClient.Do The Do method spawns a goroutine to read the response body and waits on a done channel. When the context is canceled, it closes the body but then blocks on <-done waiting for buf.ReadFrom to return. On slow or unresponsive servers this causes Do to block well beyond the context deadline. Remove the <-done receive from the ctx.Done() case so that Do returns immediately after closing the body. The goroutine will finish on its own once resp.Body.Close() causes the read to return. Fixes #1698 Signed-off-by: Pedram Pourmohammad <pedram.pourmohamad@gmail.com> Signed-off-by: pedram <Pedram.Pourmohammad@tapsi.cab> | 5 个月前 | |
Update api/client_test.go Signed-off-by: Kemal Akkoyun <kakkoyun@users.noreply.github.com> | 5 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 个月前 | ||
| 5 个月前 | ||
| 5 个月前 |