Skip to content

Commit

Permalink
fix: send unhealthy signal on fetches error (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalbhor authored Sep 4, 2024
1 parent 2d76b0c commit 98fb5f2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/relay/relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,10 @@ loop:

fetches, err := re.source.GetFetches(server)
if err != nil {
re.log.Debug("marking server as unhealthy", "server", server.ID)
re.log.Error("marking server as unhealthy", "server", server.ID)
re.signalCh <- struct{}{}

continue loop
}

re.log.Debug("received fetches", "len", fetches.NumRecords())
Expand Down

0 comments on commit 98fb5f2

Please sign in to comment.