Fix command for getting list of feeds for WebSub

This commit is contained in:
Peter Stuifzand 2018-07-11 10:56:32 +02:00
parent f927362c0b
commit cad14ac461

View File

@ -131,7 +131,8 @@ func (h *hubIncomingBackend) GetFeeds() []Feed {
defer conn.Close()
feeds := []Feed{}
feedKeys, err := redis.Strings(conn.Do("KEYS feed:*"))
// FIXME(peter): replace with set of currently checked feeds
feedKeys, err := redis.Strings(conn.Do("KEYS", "feed:*"))
if err != nil {
log.Println(err)
return feeds