Update go.mod to 1.22
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Steven Polley 2024-02-17 09:51:20 -07:00
parent b146ef3170
commit 6bf5a48d3f
2 changed files with 5 additions and 1 deletions

4
go.mod
View File

@ -1,3 +1,5 @@
module deadbeef.codes/steven/ynab-portfolio-monitor
go 1.21.4
go 1.22
// Goal is no third party dependencies

View File

@ -35,6 +35,8 @@ func homePageHandler(w http.ResponseWriter, r *http.Request) {
//http.Redirect(w, r, fmt.Sprintf("https://app.ynab.com/%s", ynabClient.BudgetID), http.StatusSeeOther)
}
// Returns status 200 if a refresh is not running, otherwise waits for refresh to finish
// Can be used by clients to tell when a refresh finishes
func statusHandler(w http.ResponseWriter, r *http.Request) {
refreshRunning.Lock()
w.WriteHeader(http.StatusOK)