From d932514e7e3c589a86a132995806270b4c8501e8 Mon Sep 17 00:00:00 2001 From: Brian Goff Date: Tue, 23 Feb 2016 21:07:38 -0500 Subject: [PATCH] Revert "use pubsub instead of filenotify to follow json logs" This reverts commit b1594c59f5e0d1ac898eacde8d91b1ba33c2b626. Signed-off-by: Brian Goff --- pubsub/publisher.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pubsub/publisher.go b/pubsub/publisher.go index 9d2ae42..0936461 100644 --- a/pubsub/publisher.go +++ b/pubsub/publisher.go @@ -56,10 +56,8 @@ func (p *Publisher) SubscribeTopic(topic topicFunc) chan interface{} { // Evict removes the specified subscriber from receiving any more messages. func (p *Publisher) Evict(sub chan interface{}) { p.m.Lock() - if _, ok := p.subscribers[sub]; ok { - delete(p.subscribers, sub) - close(sub) - } + delete(p.subscribers, sub) + close(sub) p.m.Unlock() }