From 84e024e8f1fa3b39a02ed586ad1e2bf52d71bc48 Mon Sep 17 00:00:00 2001 From: Christian Richter Date: Thu, 10 Oct 2024 14:12:27 +0200 Subject: [PATCH] remove nats dependency from activitylog & antivirus Signed-off-by: Christian Richter --- services/activitylog/pkg/server/debug/server.go | 4 +--- services/antivirus/pkg/server/debug/server.go | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/services/activitylog/pkg/server/debug/server.go b/services/activitylog/pkg/server/debug/server.go index c674f3ad8..dab0ed9a9 100644 --- a/services/activitylog/pkg/server/debug/server.go +++ b/services/activitylog/pkg/server/debug/server.go @@ -14,9 +14,7 @@ func Server(opts ...Option) (*http.Server, error) { checkHandler := handlers.NewCheckHandler( handlers.NewCheckHandlerConfiguration(). - WithLogger(options.Logger). - WithCheck("nats reachability", handlers.NewNatsCheck(options.Config.Events.Cluster)), - ) + WithLogger(options.Logger)) return debug.NewService( debug.Logger(options.Logger), diff --git a/services/antivirus/pkg/server/debug/server.go b/services/antivirus/pkg/server/debug/server.go index b0488e321..7b4ec3c96 100644 --- a/services/antivirus/pkg/server/debug/server.go +++ b/services/antivirus/pkg/server/debug/server.go @@ -17,7 +17,6 @@ func Server(opts ...Option) (*http.Server, error) { checkHandler := handlers.NewCheckHandler( handlers.NewCheckHandlerConfiguration(). WithLogger(options.Logger). - WithCheck("nats reachability", handlers.NewNatsCheck(options.Config.Events.Cluster)). WithCheck("antivirus reachability", func(ctx context.Context) error { cfg := options.Config switch cfg.Scanner.Type {