diff --git a/core_service.go b/core_service.go index fd7ce11..d86e807 100644 --- a/core_service.go +++ b/core_service.go @@ -91,7 +91,7 @@ func (s *CoreService) ensureMissingKeyCollector() { if s.hookInstalled { return } - appendMissingKeyHandler(s.handleMissingKey) + AddMissingKeyHandler(s.handleMissingKey) s.hookInstalled = true } diff --git a/hooks.go b/hooks.go index fdd4402..168c134 100644 --- a/hooks.go +++ b/hooks.go @@ -154,10 +154,6 @@ func AddMissingKeyHandler(h MissingKeyHandler) { missingKeyHandler.Store(current) } -func appendMissingKeyHandler(h MissingKeyHandler) { - AddMissingKeyHandler(h) -} - func missingKeyHandlers() missingKeyHandlersState { v := missingKeyHandler.Load() if v == nil {