summaryrefslogtreecommitdiff
path: root/cache.go
diff options
context:
space:
mode:
Diffstat (limited to 'cache.go')
-rw-r--r--cache.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cache.go b/cache.go
index e5a4e4f..4e0eddc 100644
--- a/cache.go
+++ b/cache.go
@@ -33,7 +33,7 @@ func (c *Cache) Update(states States) {
for id, state := range states {
cached, known := c.States[id]
if !known || cached != state {
- topic := fmt.Sprintf("%s/contact/%s/state", TOPIC_PREFIX, id)
+ topic := fmt.Sprintf("contact/%s/state", id)
var payload []byte
if state == true {
payload = []byte("open")