mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-06 03:46:02 +08:00
fix off by one error in GetID
This commit is contained in:
parent
ec486addf0
commit
d60ce26c9f
1 changed files with 1 additions and 1 deletions
2
mq/mq.go
2
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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue