Skip to content

Commit 274c0a8

Browse files
khaliqgantclaude
andcommitted
refactor(spawner): export terminate_child as pub
Make terminate_child public so it can be reused from main.rs instead of being duplicated inline, reducing code duplication. Cherry-picked from PR #412. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent caf5972 commit 274c0a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

relay-broker/src/spawner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ impl Spawner {
135135
}
136136
}
137137

138-
async fn terminate_child(child: &mut Child, timeout_duration: Duration) -> Result<()> {
138+
pub async fn terminate_child(child: &mut Child, timeout_duration: Duration) -> Result<()> {
139139
#[cfg(unix)]
140140
{
141141
if let Some(pid) = child.id() {

0 commit comments

Comments
 (0)