forked from jmug/stoatchat
fix: don't try to mount env logger twice
This commit is contained in:
@@ -24,9 +24,6 @@ use consumers::{
|
|||||||
|
|
||||||
#[tokio::main(flavor = "multi_thread", worker_threads = 2)]
|
#[tokio::main(flavor = "multi_thread", worker_threads = 2)]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
let config = config().await;
|
|
||||||
pretty_env_logger::init();
|
|
||||||
|
|
||||||
// Configure logging and environment
|
// Configure logging and environment
|
||||||
revolt_config::configure!(pushd);
|
revolt_config::configure!(pushd);
|
||||||
|
|
||||||
@@ -55,6 +52,8 @@ async fn main() {
|
|||||||
// This'll require some interesting shimming if we need to add more events once this is in prod (different payloads between prod and test),
|
// This'll require some interesting shimming if we need to add more events once this is in prod (different payloads between prod and test),
|
||||||
// but that sounds like a problem for future us.
|
// but that sounds like a problem for future us.
|
||||||
|
|
||||||
|
let config = config().await;
|
||||||
|
|
||||||
// inbound: generic
|
// inbound: generic
|
||||||
connections.push(
|
connections.push(
|
||||||
make_queue_and_consume(
|
make_queue_and_consume(
|
||||||
|
|||||||
Reference in New Issue
Block a user