change HTTP method to comply with spec (#9100)

There is discrepancy with the spec, it has PUT
This commit is contained in:
Nikita Kalyanov
2024-09-23 16:53:06 +03:00
committed by GitHub
parent 4d5add9ca0
commit f446e08fb8
5 changed files with 5 additions and 5 deletions

View File

@@ -1849,7 +1849,7 @@ pub fn make_router(
RequestName("v1_tenant_timeline"),
)
})
.post(
.put(
"/v1/tenant/:tenant_id/timeline/:timeline_id/archival_config",
|r| {
tenant_service_handler(

View File

@@ -238,7 +238,7 @@ impl PageserverClient {
) -> Result<()> {
measured_request!(
"timeline_archival_config",
crate::metrics::Method::Post,
crate::metrics::Method::Put,
&self.node_id_label,
self.inner
.timeline_archival_config(tenant_shard_id, timeline_id, req)