Skip to content

fix: V2 interval type defense + alivelist client restoration#2

Open
husibo16 wants to merge 1 commit intomainfrom
fix/node-comm-v1
Open

fix: V2 interval type defense + alivelist client restoration#2
husibo16 wants to merge 1 commit intomainfrom
fix/node-comm-v1

Conversation

@husibo16
Copy link
Copy Markdown
Owner

No description provided.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 758f6ffe70

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread node/node.go
Comment on lines +268 to +272
case float64:
if x <= 0 {
return def
}
return time.Duration(x) * time.Second
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Clamp float intervals before converting to Duration

When push_interval/pull_interval comes back as a non-integer float (for example 0.5), this cast truncates to 0 and returns a zero interval instead of falling back to defaults. In this codebase, a zero interval feeds time.AfterFunc in the task scheduler, which can create a tight immediate-reschedule loop and high CPU usage rather than a safe polling cadence.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant