Skip to content
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

Improve sample KCL app #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

charleswhchan
Copy link

  • change self._SLEEP_SECONDS to self._CHECKPOINT_SLEEP_SECONDS to avoid naming conflict with user code that also implements sleep/delay
  • move process_record(), should_update_sequence(), and checkpoint() after process_records() so the code is more fluent when read and makes the context clearer
  • also added '_' prefix to the aforementioned functions to indicate internal functions

- change self._SLEEP_SECONDS to self._CHECKPOINT_SLEEP_SECONDS to avoid naming conflict with user code that also implements sleep/delay
- move process_record(), should_update_sequence(), and checkpoint() after process_records() so the code is more fluent when read and makes the context clearer
- also added '_' prefix to the aforementioned functions to indicate internal functions
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.

1 participant