From d60ce26c9f22785e937a0b2322bf3b2eb4cebbd3 Mon Sep 17 00:00:00 2001 From: Matthew R Kasun Date: Fri, 14 Jan 2022 22:22:11 +0000 Subject: [PATCH] fix off by one error in GetID --- mq/mq.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mq/mq.go b/mq/mq.go index 9b5197b2..3521a165 100644 --- a/mq/mq.go +++ b/mq/mq.go @@ -175,5 +175,5 @@ func GetID(topic string) (string, error) { return "", errors.New("invalid topic") } //the last part of the topic will be the node.ID - return parts[count], nil + return parts[count-1], nil }