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

Introduce ScanFunc signature and remove ScanStatus #77

Merged
merged 6 commits into from Apr 7, 2019

Conversation

harlow
Copy link
Owner

@harlow harlow commented Dec 31, 2018

Major changes:

type ScanFunc func(r *Record) error
  • Simplify the callback func signature by removing ScanStatus
  • Leverage context for cancellation
  • Add custom error SkipCheckpoint for special cases when we don't want to checkpoint

Minor changes:

  • Use kinesis package constants for shard iterator types
  • Move optional config to new file

See conversation on #75 for more details

Major changes:

* Remove the concept of `ScanStatus` in favor of custom errors

Minor changes:

* Move optional config to new file

#75
@pedroandrade
Copy link

Hey @harlow thanks for your work and time spent in this lib, so, I think there are a lot of great features in this PR, do you need any help to finish it?

@harlow harlow merged commit 76158d2 into master Apr 7, 2019
@harlow harlow deleted the hw-refactor-scan-status branch April 7, 2019 23:29
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.

None yet

2 participants