mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-16 04:24:56 +02:00
ship_processor.go: encodeQueue should accept and redis.ChannelInterface instead of redis.Channel to make it more generic.
This commit is contained in:
parent
723b0786cb
commit
83a4c9f70f
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ func queueMessage(channel redis.ChannelInterface, payload []byte) bool {
|
|||
return true
|
||||
}
|
||||
|
||||
func encodeQueue(channel redis.Channel, v interface{}) bool {
|
||||
func encodeQueue(channel redis.ChannelInterface, v interface{}) bool {
|
||||
if payload, ok := encodeMessage(v); ok {
|
||||
if queueMessage(channel, payload) {
|
||||
return true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue