Fixed lost sender issue.

This commit is contained in:
2025-03-30 11:38:41 -04:00
parent f8bf13e91b
commit c3f24d58c3
3 changed files with 51 additions and 56 deletions

View File

@ -1,8 +1,5 @@
use crate::queue::Message;
use std::{
fmt,
sync::mpsc::Sender,
};
use std::{fmt, sync::mpsc::Sender};
use uuid::Uuid;
#[derive(Clone, Debug)]
@ -65,8 +62,8 @@ impl fmt::Display for Field {
#[cfg(test)]
mod fields {
use std::sync::mpsc::channel;
use super::*;
use std::sync::mpsc::channel;
#[test]
fn string_to_field() {
@ -128,7 +125,7 @@ mod fields {
let msg = Message::new();
sender.send(msg).unwrap();
rx.recv().unwrap();
},
}
_ => unreachable!("should have been a sender"),
}
}