Improved tracing (part 4)
This commit is contained in:
@@ -37,7 +37,7 @@ jemallocator = "0.5.0"
|
||||
default = ["sqlite", "postgres", "mysql", "rocks", "elastic", "s3", "redis", "enterprise"]
|
||||
#default = ["sqlite", "postgres", "mysql", "rocks", "elastic", "s3", "redis", "foundationdb", "enterprise"]
|
||||
sqlite = ["store/sqlite"]
|
||||
foundationdb = ["store/foundation"]
|
||||
foundationdb = ["store/foundation", "common/foundation"]
|
||||
postgres = ["store/postgres"]
|
||||
mysql = ["store/mysql"]
|
||||
rocks = ["store/rocks"]
|
||||
|
||||
@@ -6,10 +6,7 @@
|
||||
|
||||
use std::time::Duration;
|
||||
|
||||
use common::{
|
||||
config::server::ServerProtocol, manager::boot::BootManager,
|
||||
webhooks::manager::spawn_webhook_manager, Ipc, IPC_CHANNEL_BUFFER,
|
||||
};
|
||||
use common::{config::server::ServerProtocol, manager::boot::BootManager, Ipc, IPC_CHANNEL_BUFFER};
|
||||
use imap::core::{ImapSessionManager, IMAP};
|
||||
use jmap::{api::JmapSessionManager, services::gossip::spawn::GossiperBuilder, JMAP};
|
||||
use managesieve::core::ManageSieveSessionManager;
|
||||
@@ -34,15 +31,9 @@ async fn main() -> std::io::Result<()> {
|
||||
let mut config = init.config;
|
||||
let core = init.core;
|
||||
|
||||
// Spawn webhook manager
|
||||
let webhook_tx = spawn_webhook_manager(core.clone());
|
||||
|
||||
// Setup IPC channels
|
||||
let (delivery_tx, delivery_rx) = mpsc::channel(IPC_CHANNEL_BUFFER);
|
||||
let ipc = Ipc {
|
||||
delivery_tx,
|
||||
webhook_tx,
|
||||
};
|
||||
let ipc = Ipc { delivery_tx };
|
||||
|
||||
// Init servers
|
||||
let smtp = SMTP::init(&mut config, core.clone(), ipc).await;
|
||||
|
||||
Reference in New Issue
Block a user