mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-16 04:24:56 +02:00
ship_processor.go: use redis pipelines for publishing.
This commit is contained in:
parent
90df18562c
commit
ad37945951
1 changed files with 6 additions and 1 deletions
|
|
@ -53,10 +53,15 @@ func processTraces(traces []*ship.TransactionTraceV0) {
|
|||
}
|
||||
|
||||
for _, channel := range channels {
|
||||
if err := RedisPublish(channel, payload).Err(); err != nil {
|
||||
if err := RedisRegisterPublish(channel, payload).Err(); err != nil {
|
||||
log.Printf("Failed to post to channel '%s': %s", channel, err)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
_, err := RedisSend()
|
||||
if err != nil {
|
||||
log.Println("Failed to send redis command:", err)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue