improve code for global

This commit is contained in:
houseme
2025-04-21 21:39:57 +08:00
parent 5af648230a
commit 6c70c03985
4 changed files with 46 additions and 21 deletions
@@ -70,7 +70,6 @@ async fn test_notification_system() {
let config = rustfs_event_notifier::NotificationConfig {
store_path: "./test_events".to_string(),
channel_capacity: 100,
timeout: 50,
adapters: vec![AdapterConfig::Webhook(WebhookConfig {
endpoint: "http://localhost:8080/webhook".to_string(),
auth_token: None,
@@ -78,7 +77,6 @@ async fn test_notification_system() {
max_retries: 1,
timeout: 5,
})],
http: Default::default(),
};
let system = Arc::new(tokio::sync::Mutex::new(NotificationSystem::new(config.clone()).await.unwrap()));
let adapters: Vec<Arc<dyn ChannelAdapter>> = vec![Arc::new(WebhookAdapter::new(WebhookConfig {