diff --git a/internal/httpservers/restapi.go b/internal/httpservers/restapi.go index 1ee5aad..b314b15 100644 --- a/internal/httpservers/restapi.go +++ b/internal/httpservers/restapi.go @@ -27,7 +27,7 @@ func parseToken(cookieValue string) (*jwt.Token, error) { return jwt.Parse(cookieValue, func(token *jwt.Token) (interface{}, error) { // Don't forget to validate the alg is what you expect: if _, ok := token.Method.(*jwt.SigningMethodHMAC); !ok { - return nil, fmt.Errorf("Unexpected signing method: %v", token.Header["alg"]) + return nil, fmt.Errorf("unexpected signing method: %v", token.Header["alg"]) } // hmacSampleSecret is a []byte containing your secret, e.g. []byte("my_secret_key") diff --git a/internal/updatecheck/updateCheck.go b/internal/updatecheck/updateCheck.go index 43cb9d8..f32d870 100644 --- a/internal/updatecheck/updateCheck.go +++ b/internal/updatecheck/updateCheck.go @@ -99,7 +99,7 @@ func StartUpdateChecker(currentVersion string, currentCommit string, cfg *config s.AddFunc("@every 100h", func() { actualCheckForUpdate(payload) }) - + go actualCheckForUpdate(payload) // On startup go s.Start()