From 73f0ba05554a4aac72950ec91edf546a1e93e52d Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Fri, 6 Jan 2023 15:39:13 +0100 Subject: [PATCH] ship_processor.go: improve channel names for actions. --- ship_processor.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ship_processor.go b/ship_processor.go index 89b8e8b..80bcff2 100644 --- a/ship_processor.go +++ b/ship_processor.go @@ -96,8 +96,9 @@ func processTraces(traces []*ship.TransactionTraceV0) { channels := []string{ redis.Key("actions"), - redis.Key(string(act.Contract), "actions"), - redis.Key(string(act.Contract), "actions", string(act.Action)), + redis.Key("actions", "action:"+string(act.Action)), + redis.Key("actions", "contract:"+string(act.Contract)), + redis.Key("actions", "contract:"+string(act.Contract), "action:"+string(act.Action)), } for _, channel := range channels {