styles and logging
This commit is contained in:
+2
-1
@@ -39,7 +39,6 @@ impl Rpc {
|
||||
return Ok(RpcResponse { method: "pong".to_string(), params: RpcResult::Pong(()) });
|
||||
}
|
||||
|
||||
info!("message method: {:?}", v.method);
|
||||
let mut tx = db.transaction()?;
|
||||
|
||||
let account: Option<Account> = match v.token {
|
||||
@@ -47,6 +46,8 @@ impl Rpc {
|
||||
None => None,
|
||||
};
|
||||
|
||||
info!("method={:?} method={:?}", v.method, account.name);
|
||||
|
||||
// check the method
|
||||
// if no auth required
|
||||
match v.method.as_ref() {
|
||||
|
||||
Reference in New Issue
Block a user