summaryrefslogtreecommitdiffstats
path: root/src/model.rs
blob: 34099106772a5054c693af42139b9ee99e8f4c97 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
use actix::{Actor, SyncContext};
use diesel::mysql::MysqlConnection;
use r2d2::Pool;
use r2d2_diesel::ConnectionManager;

pub struct DbExecutor(pub Pool<ConnectionManager<MysqlConnection>>);

impl Actor for DbExecutor {
    type Context = SyncContext<Self>;
}