feat: add otel logging, integrate with tracing

This commit is contained in:
izzy
2026-01-24 01:27:32 +00:00
parent e896582a5c
commit 97511059a4
12 changed files with 134 additions and 100 deletions
-2
View File
@@ -3,7 +3,6 @@ use std::time::Duration;
use revolt_config::{config, report_internal_error};
use revolt_result::Result;
/// Initialise ClamAV
pub async fn init() {
let config = config().await;
@@ -32,7 +31,6 @@ pub async fn init() {
}
}
/// Scan for malware
pub async fn is_malware(buf: &[u8]) -> Result<bool> {
let config = config().await;
if config.files.clamd_host.is_empty() {