Skip to content

Commit

Permalink
edit doc
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed Dec 28, 2023
1 parent 567abf5 commit 24fc462
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ impl Manager for TestManager {
Ok("conn".to_string())
}

async fn check(&self, conn: Self::Connection) -> Result<Self::Connection, Self::Error> {
async fn check(&self, conn: &mut Self::Connection) -> Result<(), Self::Error> {
//check should use conn.ping()
if conn == "error" {
return Err(Self::Error::from(&conn));
return Err(Self::Error::from("error".to_string()));
}
Ok(conn)
Ok(())
}
}

Expand Down

0 comments on commit 24fc462

Please sign in to comment.