Is there a bug in the LazyLock function?

⚓ Rust    📅 2026-01-16    👤 surdeus    👁️ 14      

surdeus

Warning

This post was published 47 days ago. The information described in this article may have changed.

image

I'm not quite sure if this is a problem with LazyLock.
When I was testing the database connection, this connection proved to be valid.
At that time, when I used [DB_CONNECTION.deref()] as a global variable, the database kept timing out during the connection.

3 posts - 2 participants

Read full topic

🏷️ Rust_feed