feat: abstract commander
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-05-12 22:24:37 +02:00
parent 64d59e069f
commit 76f1c87663
9 changed files with 244 additions and 118 deletions

View File

@@ -15,11 +15,7 @@ pub struct Querier {
#[allow(dead_code, unused_variables)]
impl Querier {
pub async fn new() -> anyhow::Result<Self> {
let channel = Channel::from_static("http://localhost:4000")
.connect()
.await?;
pub async fn new(channel: Channel) -> anyhow::Result<Self> {
Ok(Self { channel })
}