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

fix: Correctly store last event id #99

Merged
merged 3 commits into from
Dec 11, 2019
Merged

fix: Correctly store last event id #99

merged 3 commits into from
Dec 11, 2019

Conversation

kamilogorek
Copy link
Contributor

Fixes #98

I know it requires a change in Hub struct and LastEventID signature, but this method was never implemented in the first place and we are still in 0.x so I think it should be fine.

Copy link
Contributor

@rhcarvalho rhcarvalho left a comment

Choose a reason for hiding this comment

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

@kamilogorek this works fine if there's no concurrency involved.

In particular, using the global sentry.LastEventID() only makes sense with no concurrency involved. Otherwise, what can we possibly tell about the return value!?

hub.go Outdated Show resolved Hide resolved
hub.go Outdated Show resolved Hide resolved
When LastEventID() returns EventID (string) instead of *EventID, user
code gets simpler because it doesn't need a nil-check.
@kamilogorek kamilogorek merged commit b150fe8 into master Dec 11, 2019
@kamilogorek kamilogorek deleted the lasteventid branch December 11, 2019 21:28
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.

No LastEventID provided
2 participants