Skip to content

fix(proto): avoid sharing state#6199

Merged
spacewander merged 1 commit into
apache:masterfrom
spacewander:grpa
Jan 26, 2022
Merged

fix(proto): avoid sharing state#6199
spacewander merged 1 commit into
apache:masterfrom
spacewander:grpa

Conversation

@spacewander

Copy link
Copy Markdown
Member

Signed-off-by: spacewander [email protected]

What this PR does / why we need it:

Pre-submission checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

@spacewander
spacewander marked this pull request as ready for review January 25, 2022 10:32

@bisakhmondal bisakhmondal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Great fix indeed 👍

Comment on lines +33 to +34
-- clear pb state
pb.state(nil)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Isn't it redundant? I think Line 54 is already retrieving the current pb state and setting it to nil.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

There is a default pb state that we need to clear.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Got it.

@spacewander
spacewander merged commit 14f0889 into apache:master Jan 26, 2022
@spacewander
spacewander deleted the grpa branch January 26, 2022 01:16
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.

4 participants