Stub out Scheduler in the Monero processor

This commit is contained in:
Luke Parker
2024-09-14 01:38:31 -04:00
parent e1ad897f7e
commit a2d9aeaed7
6 changed files with 178 additions and 72 deletions

View File

@@ -6,7 +6,7 @@
static ALLOCATOR: zalloc::ZeroizingAlloc<std::alloc::System> =
zalloc::ZeroizingAlloc(std::alloc::System);
use monero_wallet::rpc::Rpc as MRpc;
use monero_simple_request_rpc::SimpleRequestRpc;
mod primitives;
pub(crate) use crate::primitives::*;
@@ -15,18 +15,15 @@ mod key_gen;
use crate::key_gen::KeyGenParams;
mod rpc;
use rpc::Rpc;
/*
mod scheduler;
use scheduler::Scheduler;
use scheduler::{Planner, Scheduler};
#[tokio::main]
async fn main() {
let db = bin::init();
let feed = Rpc {
db: db.clone(),
rpc: loop {
match MRpc::new(bin::url()).await {
match SimpleRequestRpc::new(bin::url()).await {
Ok(rpc) => break rpc,
Err(e) => {
log::error!("couldn't connect to the Monero node: {e:?}");
@@ -36,9 +33,11 @@ async fn main() {
},
};
bin::main_loop::<_, KeyGenParams, Scheduler<_>, Rpc<bin::Db>>(db, feed.clone(), feed).await;
bin::main_loop::<_, KeyGenParams, _>(
db,
feed.clone(),
Scheduler::new(Planner(feed.clone())),
feed,
)
.await;
}
*/
#[tokio::main]
async fn main() {}