mirror of
https://github.com/fluencelabs/fluid
synced 2025-06-17 15:21:20 +00:00
msg => message
This commit is contained in:
@ -35,9 +35,9 @@ fn run(arg: String) -> String {
|
||||
api::serialize(&result)
|
||||
}
|
||||
|
||||
fn add_post(msg: String, username: String) -> AppResult<Response> {
|
||||
fn add_post(message: String, username: String) -> AppResult<Response> {
|
||||
// Store post
|
||||
model::add_post(msg, username)?;
|
||||
model::add_post(message, username)?;
|
||||
// Get total number of posts
|
||||
let count = model::get_posts_count()?;
|
||||
|
||||
|
@ -6,8 +6,8 @@ pub fn create_scheme() -> AppResult<()> {
|
||||
Ok(log::info!("creating scheme"))
|
||||
}
|
||||
|
||||
pub fn add_post(msg: String, username: String) -> AppResult<()> {
|
||||
Ok(log::info!("add post {} {}", msg, username))
|
||||
pub fn add_post(message: String, username: String) -> AppResult<()> {
|
||||
Ok(log::info!("add post {} {}", message, username))
|
||||
}
|
||||
|
||||
pub fn get_all_posts() -> AppResult<String> {
|
||||
|
Reference in New Issue
Block a user