Skip to content

Commit

Permalink
refactor: rename SupervisorMonitor to LoopBuilder
Browse files Browse the repository at this point in the history
Signed-off-by: 0x009922 <[email protected]>
  • Loading branch information
0x009922 committed Sep 9, 2024
1 parent 92256a5 commit c9ca221
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions futures/src/supervisor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,15 @@ impl Supervisor {
return Ok(());
}

SupervisorMonitor::new(self.shutdown_signal)
LoopBuilder::new(self.shutdown_signal)
.monitor(self.children)
.into_loop()
.run()
.await
}
}

struct SupervisorMonitor {
struct LoopBuilder {
set: JoinSet<()>,
shutdown_signal: ShutdownSignal,
exit: (
Expand All @@ -120,7 +120,7 @@ struct SupervisorMonitor {
),
}

impl SupervisorMonitor {
impl LoopBuilder {
fn new(shutdown_signal: ShutdownSignal) -> Self {
Self {
set: JoinSet::new(),
Expand Down

0 comments on commit c9ca221

Please sign in to comment.