chore(handlers): Remove unused code
This commit is contained in:
parent
b862e3dc79
commit
a9917d54a8
1 changed files with 0 additions and 8 deletions
|
@ -32,14 +32,6 @@ pub struct AppState {
|
||||||
pub renderer: Addr<Syn, Renderer>,
|
pub renderer: Addr<Syn, Renderer>,
|
||||||
}
|
}
|
||||||
|
|
||||||
// impl AppState {
|
|
||||||
// fn render_ok<M>(self, msg: M) -> ConverseResponse
|
|
||||||
// where M: Send + Message, Renderer: Handler<M> {
|
|
||||||
// self.renderer.send(msg);
|
|
||||||
// unimplemented!()
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
pub fn forum_index(state: State<AppState>) -> ConverseResponse {
|
pub fn forum_index(state: State<AppState>) -> ConverseResponse {
|
||||||
state.db.send(ListThreads)
|
state.db.send(ListThreads)
|
||||||
.and_then(move |res| state.renderer.send(IndexPage { threads: res.unwrap() }))
|
.and_then(move |res| state.renderer.send(IndexPage { threads: res.unwrap() }))
|
||||||
|
|
Loading…
Reference in a new issue