improve log

This commit is contained in:
sheyanjie-qq 2024-08-12 19:09:59 +08:00
parent edcc5f5b67
commit 1690c81510
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ async fn main() -> anyhow::Result<()> {
// ANCHOR: consume
match consumer.subscribe(["topic_meters"]).await{
Ok(_) => println!("subscribe topics successfully."),
Ok(_) => println!("Subscribe topics successfully."),
Err(err) => {
eprintln!("Failed to subscribe topic_meters, dsn: {}; ErrMessage: {}", dsn, err);
return Err(err.into());