From 2ab2ac5e3c4379581797593812c5c266944f1623 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Thu, 7 Mar 2019 21:33:25 +0100 Subject: [PATCH] Load channelType from settings --- cmd/eksterd/timeline.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/eksterd/timeline.go b/cmd/eksterd/timeline.go index fc9f336..391758f 100644 --- a/cmd/eksterd/timeline.go +++ b/cmd/eksterd/timeline.go @@ -22,7 +22,14 @@ func (b *memoryBackend) getTimeline(channel string) TimelineBackend { timelineType := "sorted-set" if channel == "notifications" { timelineType = "stream" + } else { + if setting, ok := b.Settings[channel]; ok { + if setting.ChannelType != "" { + timelineType = setting.ChannelType + } + } } + if timelineType == "sorted-set" { timeline := &redisSortedSetTimeline{channel} err := timeline.Init()