feat: redirect pg_isready output to /dev/null

Fixed bug where restore commands were called inside pg_isready loop.
Made CommandBuilder::build public. Redirected stdout for pg_isready
calls to /dev/null via Stdio::null().
This commit is contained in:
2023-11-27 20:53:30 +01:00
parent 0b0ca06398
commit 6fcf48ed61
2 changed files with 6 additions and 4 deletions

View File

@@ -63,7 +63,7 @@ impl CommandBuilder {
self
}
fn build(self) -> Result<Command> {
pub fn build(self) -> Result<Command> {
debug_println!("-----\n{self}\n-----");
let (first, rest) = self.args.split_first().context("empty args")?;