From 9f42b33fa97f76e3d640b15db6f0176c71d2fd56 Mon Sep 17 00:00:00 2001
From: Pavel Kirilin <win10@list.ru>
Date: Thu, 20 Jan 2022 00:35:43 +0400
Subject: [PATCH] Fixed missing cfg macro.

Signed-off-by: Pavel Kirilin <win10@list.ru>
---
 src/notifiers/models/notification_manager.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/notifiers/models/notification_manager.rs b/src/notifiers/models/notification_manager.rs
index 79b538b..84509da 100644
--- a/src/notifiers/models/notification_manager.rs
+++ b/src/notifiers/models/notification_manager.rs
@@ -22,6 +22,7 @@ impl NotificationManager {
             notifiers: Vec::new(),
         };
         debug!("Initializing notification manager.");
+        #[cfg(feature = "file_notifiers")]
         if tus_config.notification_opts.hooks_file.is_some() {
             debug!("Found hooks file");
             manager.notifiers.push(Box::new(FileNotifier::new(
-- 
GitLab