mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
Fix minor typos and formatting directives
This small patch fixes a typo in a comment, and a missing formatting directive; both were caught by static analysis tools (misspell and go vet).
This commit is contained in:
@@ -32,7 +32,7 @@ var (
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
// Server addresses.
|
// Server addresses.
|
||||||
// We default to internal ones, but may get overriden via flags.
|
// We default to internal ones, but may get overridden via flags.
|
||||||
// TODO: Don't hard-code the default.
|
// TODO: Don't hard-code the default.
|
||||||
smtpAddr = "127.0.0.1:13444"
|
smtpAddr = "127.0.0.1:13444"
|
||||||
submissionAddr = "127.0.0.1:13999"
|
submissionAddr = "127.0.0.1:13999"
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ func main() {
|
|||||||
|
|
||||||
keyOut, err := os.OpenFile("privkey.pem", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0600)
|
keyOut, err := os.OpenFile("privkey.pem", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0600)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("failed to open privkey.pem for writing:", err)
|
log.Fatalf("failed to open privkey.pem for writing: %s", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
pem.Encode(keyOut, pemBlockForKey(priv))
|
pem.Encode(keyOut, pemBlockForKey(priv))
|
||||||
|
|||||||
Reference in New Issue
Block a user