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: close the poll that has already been created when calling the openPoll fails #256

Merged
merged 3 commits into from
May 29, 2023
Merged

Conversation

wuqinqiang
Copy link
Contributor

What type of PR is this?

fix

Check the PR title.

  • This PR title match the format: <type>(optional scope): <description>
  • The description of this PR title is user-oriented and clear enough for others to understand.
  • Attach the PR updating the user documentation if the current PR requires user awareness at the usage level. User docs repo

(Optional) Translate the PR title into Chinese.

(Optional) More detailed description for this PR(en: English/zh: Chinese).

en:close the poll that has already been created when calling the openPoll fails
zh: 当调用openPoll失败的时候,需要释放之前创建成功的poll资源,而不是直接panic

(Optional) Which issue(s) this PR fixes:

@wuqinqiang wuqinqiang requested review from a team as code owners May 27, 2023 01:08
@joway
Copy link
Member

joway commented May 29, 2023

@wuqinqiang Can you describe what's case you meet raise the panic?

@wuqinqiang
Copy link
Contributor Author

wuqinqiang commented May 29, 2023

@wuqinqiang Can you describe what's case you meet raise the panic?

@joway I didn't have a panic situation. I just consider that when the creation fails and directly panic, the previously created resources may leak.

others:

@joway joway merged commit 4b09897 into cloudwego:develop May 29, 2023
8 checks passed
firedtoad pushed a commit to firedtoad/netpoll that referenced this pull request Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants