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: cork/uncork should can be called multi times in same ctx #78

Merged
merged 1 commit into from
Jan 16, 2023

Conversation

killagu
Copy link
Contributor

@killagu killagu commented Jan 16, 2023

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)
Description of change

@killagu killagu force-pushed the fix/cork_multi_times branch from 4a208cf to 1f5fb8f Compare January 16, 2023 15:14
@killagu killagu merged commit 269cda6 into master Jan 16, 2023
@killagu killagu deleted the fix/cork_multi_times branch January 16, 2023 15:25
@@ -28,6 +28,8 @@ export class EggContextEventBus implements ContextEventBus {
uncork() {
assert(this.corkId, 'eventbus uncork without cork');
this.eventBus.uncork(this.corkId);
this.context.set(CORK_ID, null);
Copy link
Member

Choose a reason for hiding this comment

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

看来是一直都有问题?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

是的。之前没测试过多次的场景

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