Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kris-gaudel
Copy link
Contributor

@kris-gaudel kris-gaudel commented Oct 22, 2025

Remove duplicated functions and fix lines upsetting the linter

image

stop
@pid_controller.reset
end

Copy link
Contributor

Choose a reason for hiding this comment

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

why are we deleting these functions? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They were duplicated

Copy link
Contributor

Choose a reason for hiding this comment

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

ohh I see now

rescue
end

@breaker.acquire(@resource) { raise "Error" }
Copy link
Contributor

Choose a reason for hiding this comment

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

wouldn't this break the test?

# Simulate dependency failures
10.times do
@breaker.acquire(@resource) { raise "Error" }
rescue
Copy link
Contributor

Choose a reason for hiding this comment

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

same comment as above

write_thread.join
read_threads.each(&:join)

# Should complete without deadlock or errors
Copy link
Contributor

Choose a reason for hiding this comment

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

this might be needed. What is the test trying to confirm?

@kris-gaudel
Copy link
Contributor Author

Followed up in #812

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.

2 participants