Skip to content

Commit

Permalink
Catch unsuccessful requests during prefetch of observations (^2)
Browse files Browse the repository at this point in the history
  • Loading branch information
adeveloper-wq committed Jun 27, 2024
1 parent f661312 commit 611cb7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion observations/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func prefetchMostRecentObservationsPage(page int) (more bool) {
panic(err)
}
defer resp.Body.Close()
if resp.StatusCode >= 200 && resp.StatusCode < 300 {
if resp.StatusCode >= 300 {
log.Warning.Println("Could not sync observations: ", resp.Status)
return false
}
Expand Down

0 comments on commit 611cb7f

Please sign in to comment.