Skip to content

Conversation

@L4B0MB4
Copy link
Contributor

@L4B0MB4 L4B0MB4 commented Nov 30, 2024

This pull request includes refactoring to the EventPolling class in the pkg/eventpolling/polling.go file to improve code readability and maintainability. The main changes involve splitting the PollEvents function into two separate functions and removing unnecessary variables.

Refactoring for improved readability and maintainability:

  • pkg/eventpolling/polling.go: Split the PollEvents function into PollEvents and PollEventsUntilEmpty to separate concerns and simplify the control flow. [1] [2]
  • Removed the hadMoreThenZeroEvents variable and adjusted the sleep intervals and loop conditions accordingly. [1] [2]

@L4B0MB4 L4B0MB4 merged commit da22211 into main Nov 30, 2024
3 checks passed
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