Code Room
Code reviewHardcr-g614
Subject Storage multipartLevel Senior–Staff~22 minCommon in Storage & CDN interviewsIndustries Technology, Software development

Question

Review this Rust function uploading a large object to blob storage.

What a strong answer looks like

Separate real bugs from style. Rank issues by severity, point at the root cause rather than the symptom, and suggest a concrete fix — specific and kind.

Talk through your review
Code to reviewrust
async fn upload_blob(client: &BlobClient, container: &str, name: &str, path: &Path) -> Result<()> {    let bytes = tokio::fs::read(path).await?;   // files routinely 1-20 GB    client        .container(container)        .blob(name)        .put_block_blob(bytes)                  // single request        .await?;    Ok(())}
Run or narrate your approach, then ask the coach.