Broadcast work requests to each node

This commit is contained in:
2024-10-07 00:15:29 +02:00
parent e5c3b38121
commit f589d4c11e
3 changed files with 35 additions and 21 deletions

View File

@ -67,6 +67,12 @@ impl Into<WorkerMessages> for String {
}
}
impl Into<RocketMessage> for WorkerMessages {
fn into(self) -> RocketMessage {
RocketMessage::Text(self.to_string())
}
}
impl TryInto<WorkerMessages> for RocketMessage {
type Error = String;