Skip to content

Commit

Permalink
stub for user::balance()
Browse files Browse the repository at this point in the history
  • Loading branch information
gbmor committed Jan 14, 2020
1 parent 200dd86 commit 216e321
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rtcoin-server/src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ impl DB {
Some(Kind::Rename) => user::rename(comm.clone(), &self.conn),
Some(Kind::Send) => user::send(comm.clone(), &self.conn),
Some(Kind::Sign) => {}
Some(Kind::Balance) => {}
Some(Kind::Balance) => user::balance(comm.clone(), &self.conn),
Some(Kind::Verify) => {}
Some(Kind::Contest) => {}
Some(Kind::Audit) => {}
Expand Down
12 changes: 12 additions & 0 deletions rtcoin-server/src/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,3 +259,15 @@ pub fn send(comm: db::Comm, _db: &rusqlite::Connection) {

unimplemented!();
}

pub fn balance(comm: db::Comm, _db: &rusqlite::Connection) {
let _args = match comm.args {
Some(val) => val,
None => {
log::error!("Received None for Comm args");
return;
}
};

unimplemented!();
}

0 comments on commit 216e321

Please sign in to comment.