Moved client responses to mutex.

This commit is contained in:
2025-04-02 14:26:09 -04:00
parent 704625b078
commit 3355358ac5
5 changed files with 179 additions and 43 deletions

17
src/utils.rs Normal file
View File

@ -0,0 +1,17 @@
use uuid::Uuid;
pub struct GenID;
impl GenID {
pub fn new() -> Self {
GenID {}
}
}
impl Iterator for GenID {
type Item = Uuid;
fn next(&mut self) -> Option<Self::Item> {
Some(Uuid::new_v4())
}
}