-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow configuring heartbeat interval #261
Conversation
WalkthroughThe recent changes introduce a new Changes
Sequence Diagram(s) (Beta)sequenceDiagram
participant User as User
participant CLI as Command-Line Interface
participant Config as Config
participant Bootstrap as Bootstrap
participant Ingestion as Ingestion
User->>CLI: Start application with --heartbeat-interval
CLI->>Config: Parse flags
Config->>Bootstrap: Pass Config including HeartbeatInterval
Bootstrap->>Ingestion: Call NewRPCSubscriber with HeartbeatInterval
Ingestion->>Ingestion: Initialize RPCSubscriber with HeartbeatInterval
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (3)
- bootstrap/bootstrap.go (1 hunks)
- config/config.go (2 hunks)
- services/ingestion/subscriber.go (2 hunks)
Additional comments not posted (4)
services/ingestion/subscriber.go (2)
32-50
: The addition ofheartbeatInterval
to theRPCSubscriber
struct and its initialization inNewRPCSubscriber
are correctly implemented. This aligns with the PR's objective to allow configurable heartbeat intervals.
95-95
: Correct usage ofheartbeatInterval
in theSubscribe
method to configure the heartbeat interval dynamically.bootstrap/bootstrap.go (1)
155-155
: The instantiation ofRPCSubscriber
with theheartbeatInterval
parameter instartIngestion
is correctly implemented. This ensures that the heartbeat interval is configurable and passed correctly to the ingestion service.config/config.go (1)
Line range hint
73-100
: The addition of theHeartbeatInterval
field to theConfig
struct and its initialization from command-line flags are correctly implemented. This supports the new feature of configurable heartbeat intervals.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- services/ingestion/subscriber_test.go (1 hunks)
Additional comments not posted (1)
services/ingestion/subscriber_test.go (1)
100-100
: LGTM! The heartbeat interval is correctly passed to theNewRPCSubscriber
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- bootstrap/bootstrap.go (1 hunks)
- services/ingestion/subscriber_test.go (1 hunks)
Files skipped from review as they are similar to previous changes (2)
- bootstrap/bootstrap.go
- services/ingestion/subscriber_test.go
Description
This PR allows configuring heartbeat interval
For contributor use:
master
branchFiles changed
in the Github PR explorerSummary by CodeRabbit
New Features
Improvements