This commit is contained in:
parent
ec493be52d
commit
2a60a6afff
|
@ -217,7 +217,6 @@ ON CONFLICT ON CONSTRAINT "items_uid_key" DO NOTHING
|
||||||
return false, err
|
return false, err
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Printf("AddItem: rows affected %d\n", c)
|
|
||||||
return c > 0, nil
|
return c > 0, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,6 @@ type Backend interface {
|
||||||
// Create creates a channel of the specified type. Return nil when the type
|
// Create creates a channel of the specified type. Return nil when the type
|
||||||
// is not known.
|
// is not known.
|
||||||
func Create(channel, timelineType string, pool *redis.Pool, db *sql.DB) Backend {
|
func Create(channel, timelineType string, pool *redis.Pool, db *sql.DB) Backend {
|
||||||
log.Printf("fetching timeline with type %s", timelineType)
|
|
||||||
if timelineType == "sorted-set" {
|
if timelineType == "sorted-set" {
|
||||||
timeline := &redisSortedSetTimeline{channel: channel, pool: pool}
|
timeline := &redisSortedSetTimeline{channel: channel, pool: pool}
|
||||||
err := timeline.Init()
|
err := timeline.Init()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user