fix off by one error in GetID

This commit is contained in:
Matthew R Kasun 2022-01-14 22:22:11 +00:00
parent 1e199665c0
commit 3e890f4d8d

View file

@ -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
}