From 8a4f76bdae96c67dab71676f9db02e112e3ba527 Mon Sep 17 00:00:00 2001 From: James DeFelice Date: Mon, 10 Aug 2015 18:28:11 -0400 Subject: [PATCH] make format --- records/generator.go | 22 +++++++++++----------- records/validation.go | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/records/generator.go b/records/generator.go index 9a428bb8..a449a673 100644 --- a/records/generator.go +++ b/records/generator.go @@ -376,11 +376,11 @@ func (rg *RecordGenerator) taskRecords(sj state.State, domain string, spec label canonical := ctx.taskName + "-" + ctx.taskID + "-" + ctx.slaveID + "." + fname arec := ctx.taskName + "." + fname - rg.insertRR(arec + tail, ctx.taskIP, "A") - rg.insertRR(canonical + tail, ctx.taskIP, "A") + rg.insertRR(arec+tail, ctx.taskIP, "A") + rg.insertRR(canonical+tail, ctx.taskIP, "A") - rg.insertRR(arec + ".slave" + tail, ctx.slaveIP, "A") - rg.insertRR(canonical + ".slave" + tail, ctx.slaveIP, "A") + rg.insertRR(arec+".slave"+tail, ctx.slaveIP, "A") + rg.insertRR(canonical+".slave"+tail, ctx.slaveIP, "A") // Add RFC 2782 SRV records slaveHost := canonical + ".slave" + tail @@ -390,12 +390,12 @@ func (rg *RecordGenerator) taskRecords(sj state.State, domain string, spec label slaveTarget := slaveHost + ":" + port if !task.HasDiscoveryInfo() { - rg.insertRR(tcpName + tail, slaveTarget, "SRV") - rg.insertRR(udpName + tail, slaveTarget, "SRV") + rg.insertRR(tcpName+tail, slaveTarget, "SRV") + rg.insertRR(udpName+tail, slaveTarget, "SRV") } - rg.insertRR(tcpName + ".slave" + tail, slaveTarget, "SRV") - rg.insertRR(udpName + ".slave" + tail, slaveTarget, "SRV") + rg.insertRR(tcpName+".slave"+tail, slaveTarget, "SRV") + rg.insertRR(udpName+".slave"+tail, slaveTarget, "SRV") } if !task.HasDiscoveryInfo() { @@ -409,10 +409,10 @@ func (rg *RecordGenerator) taskRecords(sj state.State, domain string, spec label proto := spec(port.Protocol) if proto != "" { name := "_" + ctx.taskName + "._" + proto + "." + fname - rg.insertRR(name + tail, target, "SRV") + rg.insertRR(name+tail, target, "SRV") } else { - rg.insertRR(tcpName + tail, target, "SRV") - rg.insertRR(udpName + tail, target, "SRV") + rg.insertRR(tcpName+tail, target, "SRV") + rg.insertRR(udpName+tail, target, "SRV") } } } diff --git a/records/validation.go b/records/validation.go index c09f9346..06ea4ffc 100644 --- a/records/validation.go +++ b/records/validation.go @@ -71,4 +71,4 @@ func validateIPSources(srcs []string) error { } return nil -} \ No newline at end of file +}