fix: refactor status handling in checkHost to improve clarity and maintainability
This commit is contained in:
@@ -508,7 +508,7 @@ func (s *UptimeService) checkHost(ctx context.Context, host *models.UptimeHost)
|
||||
|
||||
latency := time.Since(start).Milliseconds()
|
||||
oldStatus := host.Status
|
||||
newStatus := oldStatus
|
||||
var newStatus string
|
||||
|
||||
// Implement failure count debouncing
|
||||
if success {
|
||||
|
||||
Reference in New Issue
Block a user