linting and fixing review feedback

pull/1062/head
max furman 2 years ago
parent 7c5e5b2b87
commit ffff9af323
No known key found for this signature in database

@ -1135,7 +1135,8 @@ retry:
}
var check api.SSHCheckPrincipalResponse
if err := readJSON(resp.Body, &check); err != nil {
return nil, errs.Wrapf(http.StatusInternalServerError, err, "error reading %s response", u)
return nil, errs.Wrapf(http.StatusInternalServerError, err, "error reading %s response",
[]any{u, errs.WithMessage("Failed to parse response from /ssh/check-host endpoint")}...)
}
return &check, nil
}

@ -4,6 +4,7 @@ import (
"flag"
"fmt"
"html"
"log"
"math/rand"
"net/http"
"os"
@ -179,7 +180,7 @@ $ step-ca --context=mybiz --password-file ./password.txt
Addr: debugProfAddr,
ReadHeaderTimeout: 15 * time.Second,
}
srv.ListenAndServe()
log.Println(srv.ListenAndServe())
}()
}

Loading…
Cancel
Save