Skip to content

Commit

Permalink
Ops
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryDodzin committed Jan 2, 2025
1 parent 15fd812 commit ef7e6df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions mirrord/cli/src/container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,8 @@ async fn exec_and_get_first_line(command: &mut Command) -> Result<Option<String>
.spawn()
.map_err(ContainerError::UnableToExecuteCommand)?;

tracing::warn!(?child, "spawned watch for child");

let stdout = child.stdout.take().expect("stdout should be piped");
let stderr = child.stderr.take().expect("stdout should be piped");
let stderr = child.stderr.take().expect("stderr should be piped");

let result = tokio::time::timeout(Duration::from_secs(30), async {
BufReader::new(stdout)
Expand Down
4 changes: 1 addition & 3 deletions mirrord/cli/src/container/sidecar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,9 @@ impl Sidecar {
.spawn()
.map_err(ContainerError::UnableToExecuteCommand)?;

tracing::warn!(?child, "spawned watch for child");

let mut stdout =
BufReader::new(child.stdout.take().expect("stdout should be piped")).lines();
let stderr = BufReader::new(child.stderr.take().expect("stdout should be piped")).lines();
let stderr = BufReader::new(child.stderr.take().expect("stderr should be piped")).lines();

let first_line = tokio::time::timeout(Duration::from_secs(30), async {
stdout.next_line().await.map_err(|error| {
Expand Down

0 comments on commit ef7e6df

Please sign in to comment.