Skip to content

Conversation

MasterPtato
Copy link
Contributor

Changes

This was referenced Jun 7, 2025
Comment on lines +243 to +244
let db_file = tempfile::NamedTempFile::new()?;
let db_path = db_file.path();
Copy link
Contributor

Choose a reason for hiding this comment

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

The NamedTempFile is created but its handle is dropped after getting the path, which could cause the file to be deleted prematurely by the OS. Consider storing the file handle in a variable that persists throughout the function's scope to ensure the temporary file remains available until all operations are complete.

Spotted by Diamond

Is this helpful? React 👍 or 👎 to let us know.

@NathanFlurry NathanFlurry force-pushed the 06-07-feat_db_sh_for_workflows branch from a3cf488 to 6ce34ef Compare June 20, 2025 19:18
@NathanFlurry NathanFlurry force-pushed the 06-09-fix_pegboard_fix_enabling_root_users branch from e63bad4 to 636f808 Compare June 20, 2025 19:18
Copy link
Contributor

graphite-app bot commented Jun 20, 2025

Merge activity

  • Jun 20, 7:19 PM UTC: MasterPtato added this pull request to the Graphite merge queue.
  • Jun 20, 7:20 PM UTC: CI is running for this pull request on a draft pull request (#2630) due to your merge queue CI optimization settings.
  • Jun 20, 7:22 PM UTC: Merged by the Graphite merge queue via draft PR: #2630.

graphite-app bot pushed a commit that referenced this pull request Jun 20, 2025
<!-- Please make sure there is an issue that this PR is correlated to. -->

## Changes

<!-- If there are frontend changes, please include screenshots. -->
@graphite-app graphite-app bot closed this Jun 20, 2025
@graphite-app graphite-app bot deleted the 06-07-feat_db_sh_for_workflows branch June 20, 2025 19:22
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.

1 participant