Skip to content

Improve sample KCL app#60

Open
charleswhchan wants to merge 1 commit intoawslabs:masterfrom
charleswhchan:master
Open

Improve sample KCL app#60
charleswhchan wants to merge 1 commit intoawslabs:masterfrom
charleswhchan:master

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