[relay] Add health check attempt threshold (#2609)

* Add health check attempt threshold for receiver

* Add health check attempt threshold for sender
This commit is contained in:
Maycon Santos
2024-09-17 10:04:17 +02:00
committed by GitHub
parent b74951f29e
commit 5bc601111d
6 changed files with 240 additions and 29 deletions

View File

@ -49,7 +49,7 @@ func (p *Peer) Work() {
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
hc := healthcheck.NewSender()
hc := healthcheck.NewSender(p.log)
go hc.StartHealthCheck(ctx)
go p.handleHealthcheckEvents(ctx, hc)