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

Panic errors from batch function should not be cached #86

Merged

Conversation

vivek-ng
Copy link

@vivek-ng vivek-ng commented Apr 22, 2022

We currently cache panic errors from batch function. This is a problem because subsequent load calls for the same keys will continue returning panic errors without calling the batch function again. This PR fixes this issue.

@vivek-ng vivek-ng marked this pull request as ready for review April 22, 2022 09:09
@vivek-ng
Copy link
Author

@pavelnikolov @tonyghita Could you review this PR when you get a chance ? Thank you!

Copy link
Member

@pavelnikolov pavelnikolov left a comment

Choose a reason for hiding this comment

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

Please, don't use reflection!

dataloader.go Outdated Show resolved Hide resolved
@pavelnikolov pavelnikolov merged commit 4611304 into graph-gophers:master Apr 22, 2022
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