You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

25 lines
461 B

use actix::{Actor, Addr, Context, Handler, Response};
use crate::messages::UploadNar;
pub struct UploadConsumer {}
impl Actor for UploadConsumer {
type Context = Context<Self>;
}
impl UploadConsumer {
pub fn new() -> Addr<Self> {
Self::create(|ctx| {
Self {}
})
}
}
impl Handler<UploadNar> for UploadConsumer {
type Result = ();
fn handle(&mut self, msg: UploadNar, ctx: &mut Self::Context) -> Self::Result {
()
}
}