(channel string, count int)
| 237 | } |
| 238 | |
| 239 | func popRedisQueueItems(channel string, count int) ([][]byte, bool) { |
| 240 | switch strings.ToLower(strings.TrimSpace(channel)) { |
| 241 | case redisUsageChannel: |
| 242 | return redisqueue.PopOldest(count), true |
| 243 | default: |
| 244 | return nil, false |
| 245 | } |
| 246 | } |
| 247 | |
| 248 | func (s *Server) streamRedisSubscription(reader *bufio.Reader, writer *bufio.Writer, channel string, messages <-chan []byte, unsubscribe func()) { |
| 249 | if unsubscribe == nil { |
no test coverage detected