mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-10 20:11:49 +00:00
log startup status
This commit is contained in:
1 parent
f398712d5e
commit
042c49add0
1 file changed
+4
@@ -147,6 +147,8 @@ async fn main() -> AnyhowResult<()> {
|
||||
|
||||
let pool = connect_to_database().await?;
|
||||
|
||||
info!("Connected to database.");
|
||||
|
||||
let firehose_publisher = FirehosePublisher {
|
||||
mysql_pool: pool.clone(), // NB: Pool is clone/sync/send-safe
|
||||
};
|
||||
@@ -156,6 +158,8 @@ async fn main() -> AnyhowResult<()> {
|
||||
firehose_publisher: firehose_publisher.clone(), // NB: Also safe
|
||||
};
|
||||
|
||||
info!("Connected to redis...");
|
||||
|
||||
let redis_manager = RedisConnectionManager::new(
|
||||
common_env.redis_0_connection_string.clone())?;
|
||||
|
||||
|
||||
Reference in new issue
Block a user