-
Notifications
You must be signed in to change notification settings - Fork 113
feat: db sh for workflows #2570
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
feat: db sh for workflows #2570
Conversation
let db_file = tempfile::NamedTempFile::new()?; | ||
let db_path = db_file.path(); |
There was a problem hiding this comment.
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.
549dc3f
to
2fc41ec
Compare
ba62978
to
01bc6a9
Compare
01bc6a9
to
cfc30cf
Compare
62a55c9
to
e63bad4
Compare
cfc30cf
to
a3cf488
Compare
a3cf488
to
6ce34ef
Compare
e63bad4
to
636f808
Compare
Merge activity
|
<!-- Please make sure there is an issue that this PR is correlated to. --> ## Changes <!-- If there are frontend changes, please include screenshots. -->
Changes