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 97f7b0b86f
commit 5c76b2d474

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()