fix put_io_mode to use the correct http endpoint

Signed-off-by: Yuchen Liang <yuchen@neon.tech>
This commit is contained in:
Yuchen Liang
2024-10-01 10:58:47 -04:00
parent 69ef8caf58
commit 9c32bfee3b

View File

@@ -555,7 +555,7 @@ impl Client {
&self,
mode: &pageserver_api::models::virtual_file::IoMode,
) -> Result<()> {
let uri = format!("{}/v1/io_alignment", self.mgmt_api_endpoint);
let uri = format!("{}/v1/io_mode", self.mgmt_api_endpoint);
self.request(Method::PUT, uri, mode)
.await?
.json()