Skip to content

Conversation

@poopoothegorilla
Copy link
Collaborator

@poopoothegorilla poopoothegorilla commented May 19, 2025

Summary

  • fix HealthReport error aggregation
  • clean up ticker in receiveHeaders

@poopoothegorilla poopoothegorilla marked this pull request as ready for review May 19, 2025 16:03
@poopoothegorilla poopoothegorilla requested a review from a team as a code owner May 19, 2025 16:03
jmank88
jmank88 previously approved these changes May 19, 2025
silaslenihan
silaslenihan previously approved these changes May 19, 2025
@poopoothegorilla poopoothegorilla enabled auto-merge (squash) May 19, 2025 22:21
amit-momin
amit-momin previously approved these changes May 19, 2025
reductionista
reductionista previously approved these changes May 19, 2025
var err error
if !l.ReceivingHeads() {
err = errors.New("Listener is not receiving heads")
err = errors.Join(err, errors.New("Listener is not receiving heads"))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The var err is just declared above, and not used.
So it is really unnecessary to use Join here.
Anyways both New or Join work here, so can leave it whatever

if noHeadsAlarmDuration > 0 {
noHeadsAlarmT = time.NewTicker(noHeadsAlarmDuration)
noHeadsAlarmC = noHeadsAlarmT.C
defer noHeadsAlarmT.Stop()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

jmank88
jmank88 previously approved these changes May 20, 2025
DylanTinianov
DylanTinianov previously approved these changes May 20, 2025
@poopoothegorilla poopoothegorilla merged commit db3d397 into main May 20, 2025
21 checks passed
@poopoothegorilla poopoothegorilla deleted the codex/find-and-fix-important-bug branch May 20, 2025 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants