minimize the time we hold locks for and add sleep
This commit is contained in:
parent
02c08e6c75
commit
aaa530341d
2 changed files with 24 additions and 14 deletions
|
|
@ -153,6 +153,7 @@ impl<C: Crypto> Server<C> {
|
|||
}
|
||||
});
|
||||
frag_num += 1;
|
||||
sleep(Duration::from_millis(16)).await;
|
||||
}
|
||||
drop(inner);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue