pubsub logging
This commit is contained in:
parent
b04ae8a8d4
commit
b1aa559fee
@ -53,11 +53,12 @@ fn handle_notification(n: Notification, db: &Db, pss: &Sender<Message>) -> Resul
|
||||
|
||||
let msg = match n.action {
|
||||
Action::Delete => return Err(format_err!("unimplemented delete notification {:?}", n)),
|
||||
_ => match n.table {
|
||||
Action::Insert => return Err(format_err!("unimplemented insert notification {:?}", n)),
|
||||
Action::Update => match n.table {
|
||||
Table::Accounts => Message::Account(account::select(db, n.id)?),
|
||||
Table::Instances => Message::Instance(instance::instance_get(&mut tx, n.id)?),
|
||||
Table::Games => Message::Game(game::game_get(&mut tx, n.id)?),
|
||||
_ => return Err(format_err!("unimplemented notification {:?}", n)),
|
||||
_ => return Err(format_err!("unimplemented update notification {:?}", n)),
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user