mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 01:18:34 +00:00
more debug messages
This commit is contained in:
1 parent
de7f23ff99
commit
211239cc30
1 file changed
+2
@@ -83,6 +83,7 @@ impl RedisClient {
|
||||
pub async fn publish_bytes(&mut self, channel: &str, message: &[u8]) -> AnyhowResult<u32> {
|
||||
let connection = match &mut self.connection {
|
||||
None => {
|
||||
warn!("Not connected to redis!");
|
||||
return Err(anyhow!("Not connected"));
|
||||
},
|
||||
Some(connection) => connection,
|
||||
@@ -100,6 +101,7 @@ impl RedisClient {
|
||||
}
|
||||
};*/
|
||||
|
||||
info!("Publishing to redis pubsub channel: {}", channel);
|
||||
let result = connection.publish(channel, message).await?;
|
||||
Ok(result)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user