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

POSIX oneshot: refactor code out of main method #197

Merged

Conversation

mhutchinson
Copy link
Contributor

@mhutchinson mhutchinson commented Sep 3, 2024

The goal here is that the main method should contain only the interesting code for putting the entries in the log. This PR moves code into methods to aid readability:

  • initializing the verifier
  • initializing the signer
  • evaluating the glob

The goal here is that the main method should contain only the interesting code for putting the entries in the log. This PR moves code into methods to aid readability:

- initializing the verifier
- initializing the signer
- evaluating the glob

This fixes a bug where it would deadlock due to filling entryChan if
more than 100 leaves were added at a time.
@mhutchinson mhutchinson marked this pull request as ready for review September 4, 2024 08:32
@mhutchinson mhutchinson merged commit 15a2918 into transparency-dev:main Sep 4, 2024
12 checks passed
@mhutchinson mhutchinson deleted the posix-oneshot-refactor1 branch September 4, 2024 09:17
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