Use streams for tweets
All checks were successful
the build was successful

This commit is contained in:
Peter Stuifzand 2018-12-30 08:39:37 +01:00
parent 1453faa2f9
commit 691012307b
Signed by: peter
GPG Key ID: 374322D56E5209E8

View File

@ -34,7 +34,7 @@ type redisStreamTimeline struct {
func (b *memoryBackend) getTimeline(channel string) TimelineBackend {
// TODO: fetch timeline type from channel
timelineType := "sorted-set"
if channel == "notifications" {
if channel == "notifications" || channel == "tweets" {
timelineType = "stream"
}
if timelineType == "sorted-set" {