Skip to content

Commit 430cb7f

Browse files
Fixed error in examples/server_fns_axum
1 parent ba36df6 commit 430cb7f

File tree

1 file changed

+1
-1
lines changed
  • examples/server_fns_axum/src

1 file changed

+1
-1
lines changed

examples/server_fns_axum/src/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ pub fn FileUploadWithProgress() -> impl IntoView {
432432
rx: Receiver<usize>,
433433
}
434434

435-
static FILES: Lazy<DashMap<String, File>> = Lazy::new(DashMap::new);
435+
static FILES: LazyLock<DashMap<String, File>> = LazyLock::new(DashMap::new);
436436

437437
pub async fn add_chunk(filename: &str, len: usize) {
438438
println!("[{filename}]\tadding {len}");

0 commit comments

Comments
 (0)