Commit 36cdec00 by ale

Fix some go vet errors

parent 04ef9389
Pipeline #362 passed with stages
in 1 minute 2 seconds
Showing with 3 additions and 3 deletions
......@@ -262,7 +262,7 @@ func updatePresence(keysAPI etcdclient.KeysAPI, entry *DNSEntry) {
})
if err != nil {
// Oops, something went wrong, try creating the node again next time.
log.Printf("updating presence entry %s failed: %v", err)
log.Printf("updating presence entry %s failed: %v", key, err)
entry.created = false
}
}
......@@ -290,12 +290,12 @@ func runPresence(etcd etcdclient.Client, ch <-chan dnsOp) {
if op.ok {
entries[op.service.Service] = makeDNSEntries(op.service)
if *debug {
log.Printf("updated dns entry for %s", op.service)
log.Printf("updated dns entry for %s", op.service.Service)
}
} else {
delete(entries, op.service.Service)
if *debug {
log.Printf("deleted dns entry for %s", op.service)
log.Printf("deleted dns entry for %s", op.service.Service)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment