-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat(worker/monitor/pusher): creating pusher subcomponent #33
Conversation
let metrics = metrics_report.get_metrics(); | ||
|
||
let _ = client | ||
.post("http://localhost:3000/worker/metrics") |
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.
Since we're going to abstract the client into the sender
module later, this hard-coded string isn't a problem for now.
sleep(args.metrics_report_interval).await; | ||
let metrics = metrics_report.get_metrics(); | ||
|
||
let _ = client |
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.
This code ignores the error. What if a network error occurs? How should we handle it? We may decide later on.
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.
I'm fine with leaving it as is for now. Filing an issue for a future proper handle might be an option.
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.
I agree with Gustavo, we should create a issue for this to handle it, but leave the priority as low as possible.
No description provided.