Skip to content

Conversation

@zizou0x
Copy link
Collaborator

@zizou0x zizou0x commented Sep 23, 2025

No description provided.

Comment on lines +368 to +378
// If the component is unpaused, we need to add it
if s.deleted_attributes.contains("paused") {
to_add.push(id.clone());
}
// If the component is paused, we need to remove it
else if s
.updated_attributes
.contains_key("paused")
{
to_remove.push(id.clone());
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I would prefer if we used the actual value of the attribute. So if not present or =0 -> unpaused if present and > 0 then paused.

Copy link
Collaborator Author

@zizou0x zizou0x Sep 24, 2025

Choose a reason for hiding this comment

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

According to the plans, on the indexer/sdk side we are deleting the attribute to unpause it, we're never setting this to 0. See here

Do we still want this, just in case?


impl ResponseProtocolState {
pub fn is_paused(&self) -> bool {
self.attributes.contains_key("paused")
Copy link
Contributor

Choose a reason for hiding this comment

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

Again would prefer to rely on the attribute value here.

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

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

3 participants