From 541ae7408ae910ad865d47b8c6dae8577cb70746 Mon Sep 17 00:00:00 2001 From: Filipe Campos Date: Tue, 23 Dec 2025 13:29:53 +0000 Subject: [PATCH] Change HashMap value type from Vec to Bytes in shared-state tutorial For consistency use the Bytes type in the Mutex Sharding section --- content/tokio/tutorial/shared-state.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/tokio/tutorial/shared-state.md b/content/tokio/tutorial/shared-state.md index 771564c1..c44d9dc1 100644 --- a/content/tokio/tutorial/shared-state.md +++ b/content/tokio/tutorial/shared-state.md @@ -345,7 +345,7 @@ introduce `N` distinct instances. ```rust # use std::collections::HashMap; # use std::sync::{Arc, Mutex}; -type ShardedDb = Arc>>>>; +type ShardedDb = Arc>>>; fn new_sharded_db(num_shards: usize) -> ShardedDb { let mut db = Vec::with_capacity(num_shards);