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 potential nil pointer for worker #3585

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

ylsGit
Copy link

@ylsGit ylsGit commented Apr 23, 2024

What does this PR do?

It fixs potential nil pointer for Sequencer.worker

  1. line 96 loadFromPool-->addTxToWorker-->s.worker
  2. line 103 s.worker = xxx

If 1 finishes before 2, there will be a panic.

Reviewers

Main reviewers:

Codeowner reviewers:

  • @-Alice
  • @-Bob

Copy link

cla-bot bot commented Apr 23, 2024

We require contributors/corporates @ylsGit to read our Contributor License Agreement, please check the Individual CLA document/Corporate CLA document

@ylsGit ylsGit changed the title fix potential nil pointer for worker Fix potential nil pointer for worker Apr 23, 2024
@cla-bot cla-bot bot added the cla-signed label Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant