From 2f588c77c4be1653514dbfe550932de2e0fae3a9 Mon Sep 17 00:00:00 2001 From: Alexey Khit Date: Fri, 19 Aug 2022 18:05:32 +0300 Subject: [PATCH] Show all streams in list --- cmd/streams/streams.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/cmd/streams/streams.go b/cmd/streams/streams.go index 9d9f052d..2013d4a6 100644 --- a/cmd/streams/streams.go +++ b/cmd/streams/streams.go @@ -35,13 +35,14 @@ func Get(name string) *Stream { } func All() map[string]interface{} { - active := map[string]interface{}{} + all := map[string]interface{}{} for name, stream := range streams { - if stream.Active() { - active[name] = stream - } + all[name] = stream + //if stream.Active() { + // all[name] = stream + //} } - return active + return all } var log zerolog.Logger