From f28b5b6accbb56754a1716c41dc2960b878b38d3 Mon Sep 17 00:00:00 2001 From: Garet Halliday <me@garet.holiday> Date: Thu, 19 Oct 2023 16:16:06 -0500 Subject: [PATCH] a --- .../discovery/discoverers/zalando_operator/discoverer.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/gat/handlers/discovery/discoverers/zalando_operator/discoverer.go b/lib/gat/handlers/discovery/discoverers/zalando_operator/discoverer.go index 8f0567b4..9e2fc4e4 100644 --- a/lib/gat/handlers/discovery/discoverers/zalando_operator/discoverer.go +++ b/lib/gat/handlers/discovery/discoverers/zalando_operator/discoverer.go @@ -150,6 +150,9 @@ func (T *Discoverer) Provision(ctx caddy.Context) error { } func (T *Discoverer) Cleanup() error { + if T.done == nil { + return nil + } close(T.done) return nil } -- GitLab