Adding remote_agent

This commit is contained in:
Kinesin Data Technologies Incorporated
2022-10-05 08:50:40 -03:00
parent 779852022a
commit 0d6cea4152
12 changed files with 305 additions and 40 deletions
+5 -3
View File
@@ -2,6 +2,7 @@ use clap::Parser;
use serde::{Deserialize, Serialize};
use tokio::sync::{mpsc, oneshot};
use waterfall;
use waterfall::prelude::*;
#[derive(Serialize, Deserialize, Debug)]
@@ -19,9 +20,10 @@ impl StorageConfig {
) {
let (tx, rx) = mpsc::unbounded_channel();
match self {
StorageConfig::Redis { url, prefix } => {
(tx, redis_store::start(rx, url.clone(), prefix.clone()))
}
StorageConfig::Redis { url, prefix } => (
tx,
waterfall::storage::redis::start(rx, url.clone(), prefix.clone()),
),
}
}
}