-
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
RPPL-2651: Ripple Event warning should not print for context events #647
base: main
Are you sure you want to change the base?
Conversation
let is_ripple_context = | ||
RippleContext::is_ripple_context(&message.payload).is_none(); | ||
|
||
if self.has_event_listener(&message.target.as_clear_string()) { |
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.
Please add a negation here it should not proceed to send the ripple context if there are any listeners
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.
added the change please have a look
… notifying. chore: removed the ripple context update from get_timezone_and_offset() which is unnecessary.
@@ -1116,16 +1116,6 @@ impl ThunderDeviceInfoRequestProcessor { | |||
|
|||
// If timezone or offset is None or empty | |||
if let Some(tz) = Self::get_timezone_and_offset(&state).await { | |||
let cloned_state = state.clone(); |
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.
We get the Timezone and set it in Ripple context here. This sets up the initial context until the point the user changes the timezone. Are we removing this because it is adding that log?
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.
Same question.
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.
@SDK, I removed it because i understood like, that cause's the warning log. I'll revert this change.
Minimum allowed line rate is |
What
add check for event listener's for context events.
Why
if there are no event listeners available then no need to warn
How
added check for event listeners availability based on that print the warn!
Test
if context event listeners available then warn! msg prints if not then warn! msg wont print.
Checklist