Fix indent

This commit is contained in:
Lauri Võsandi 2021-07-05 15:09:14 +03:00
parent adc2c07841
commit 2c93312d74

10
main.go
View File

@ -69,12 +69,12 @@ func query(tp string, name string, m *dns.Msg, coll *mongo.Collection) {
log.Fatal(err) log.Fatal(err)
} }
if appendResults(tp, name, m, cur) == 0 { if appendResults(tp, name, m, cur) == 0 {
counterNoResults.Inc() counterNoResults.Inc()
} else { } else {
counterAlternativeNames.Inc() counterAlternativeNames.Inc()
} }
} else { } else {
counterExactMatches.Inc() counterExactMatches.Inc()
} }
} }
@ -138,7 +138,7 @@ func main() {
server := &dns.Server{Addr: ":53", Net: "udp"} server := &dns.Server{Addr: ":53", Net: "udp"}
go func() { go func() {
http.ListenAndServe("127.0.0.1:9001", nil) http.ListenAndServe("127.0.0.1:9001", nil)
}() }()
err2 := server.ListenAndServe() err2 := server.ListenAndServe()
defer server.Shutdown() defer server.Shutdown()