feat: Add methods to fetch state from Tycho RPC

This commit is contained in:
Thales Lima
2025-03-13 10:56:18 -03:00
committed by Tamara
parent 160523a888
commit 2c8e349280
6 changed files with 268 additions and 24 deletions

View File

@@ -1,12 +1,7 @@
use std::{
env,
io::{BufRead, BufReader},
path::Path,
process::{Child, Command, Stdio},
sync::{
mpsc::{self, Receiver, Sender},
Arc, Mutex,
},
sync::mpsc::{self, Receiver, Sender},
thread,
time::Duration,
};
@@ -110,7 +105,7 @@ impl TychoRunner {
let binary_path = "tycho-indexer";
let mut cmd = Command::new(binary_path)
.args(&["--database-url", db_url.as_str(), "rpc"])
.args(["--database-url", db_url.as_str(), "rpc"])
.stdout(Stdio::piped())
.stderr(Stdio::piped())
.env("RUST_LOG", "info")