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

create a shallow copy of a map before modifying it #1813

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

zkokelj
Copy link
Contributor

@zkokelj zkokelj commented Feb 21, 2024

Why this change is needed

The gateway was crashing because of modifying of requestID values after returning from cache

What changes were made as part of this PR

creating shallow copy of return value before modifying and returning it

PR checks pre-merging

Please indicate below by ticking the checkbox that you have read and performed the required
PR checks

  • PR checks reviewed and performed

Copy link
Collaborator

@BedrockSquirrel BedrockSquirrel left a comment

Choose a reason for hiding this comment

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

LGTM when you fix the return value we discussed.

@zkokelj zkokelj marked this pull request as ready for review February 21, 2024 16:16
@zkokelj zkokelj force-pushed the ziga/create_a_deep_copy_of_cached_response branch from 9979663 to 3bd0016 Compare February 21, 2024 16:19
@zkokelj zkokelj merged commit e4e6db9 into main Feb 21, 2024
2 checks passed
@zkokelj zkokelj deleted the ziga/create_a_deep_copy_of_cached_response branch February 21, 2024 16:41
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