Skip to content

Added once_cell crate to make RUNTIME lazy#1386

Merged
SilasMarvin merged 1 commit into
masterfrom
silas-fix-sdk-warning
Mar 22, 2024
Merged

Added once_cell crate to make RUNTIME lazy#1386
SilasMarvin merged 1 commit into
masterfrom
silas-fix-sdk-warning

Conversation

@SilasMarvin

Copy link
Copy Markdown
Contributor

No description provided.

@SilasMarvin SilasMarvin merged commit 730d523 into master Mar 22, 2024
@SilasMarvin SilasMarvin deleted the silas-fix-sdk-warning branch March 22, 2024 18:54
Comment thread pgml-sdks/pgml/src/lib.rs

#[allow(dead_code)]
fn get_or_set_runtime<'a>() -> &'a Runtime {
unsafe {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Oh wow, makes sense. This is totally not thread safe!

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