From 4bc1337cc9cb4f15f2fd93f638798a94339a2ed9 Mon Sep 17 00:00:00 2001 From: Ainar Garipov Date: Fri, 25 Dec 2020 12:54:22 +0300 Subject: [PATCH] home: imp naming --- internal/home/controlupdate.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/home/controlupdate.go b/internal/home/controlupdate.go index 17b60645..ff9dc4ab 100644 --- a/internal/home/controlupdate.go +++ b/internal/home/controlupdate.go @@ -20,9 +20,9 @@ type getVersionJSONRequest struct { RecheckNow bool `json:"recheck_now"` } -// temoraryError is the interface for temporary errors from the Go standard +// temporaryError is the interface for temporary errors from the Go standard // library. -type temoraryError interface { +type temporaryError interface { error Temporary() (ok bool) } @@ -57,7 +57,7 @@ func handleGetVersionJSON(w http.ResponseWriter, r *http.Request) { }() if err != nil { - var terr temoraryError + var terr temporaryError if errors.As(err, &terr) && terr.Temporary() { // Temporary network error. This case may happen while // we're restarting our DNS server. Log and sleep for