deprecated_overflow_gateway.../subscribe/redis.go

16 lines
305 B
Go
Raw Normal View History

2017-09-01 06:42:23 +00:00
package subscribe
import (
"context"
ofs_redis "git.loafle.net/overflow/overflow_subscriber/redis"
"github.com/garyburd/redigo/redis"
)
func Subscribe(ctx context.Context, redisConn redis.Conn) {
s := ofs_redis.New(ctx, redisConn)
webS := newWebSubscriberHandler(ctx, "web")
s.Subscribe(webS)
}