Garage v0.9 #473

Merged
lx merged 175 commits from next into main 2023-10-10 13:28:29 +00:00
Showing only changes of commit 28cc9f178a - Show all commits

View file

@ -65,7 +65,7 @@ pub async fn handle_create_key(
) -> Result<Response<Body>, Error> { ) -> Result<Response<Body>, Error> {
let req = parse_json_body::<CreateKeyRequest>(req).await?; let req = parse_json_body::<CreateKeyRequest>(req).await?;
let key = Key::new(&req.name); let key = Key::new(req.name.as_deref().unwrap_or("Unnamed key"));
garage.key_table.insert(&key).await?; garage.key_table.insert(&key).await?;
key_info_results(garage, key).await key_info_results(garage, key).await
@ -74,7 +74,7 @@ pub async fn handle_create_key(
#[derive(Deserialize)] #[derive(Deserialize)]
#[serde(rename_all = "camelCase")] #[serde(rename_all = "camelCase")]
struct CreateKeyRequest { struct CreateKeyRequest {
name: String, name: Option<String>,
} }
pub async fn handle_import_key( pub async fn handle_import_key(