Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b93467 commit 213930aCopy full SHA for 213930a
src/main.rs
@@ -47,7 +47,7 @@ async fn udp_serv() -> std::io::Result<()> {
47
let map1= map.clone();
48
let map2= map.clone();
49
// Find cache
50
- let cache = map1.try_lock().unwrap();
+ let cache = map1.lock().await;
51
let cache = cache.get(&query[4..received + 2]);
52
if let Some(cache) = cache {
53
if log {
0 commit comments