Cuprate / cuprate

Cuprate, an upcoming experimental, modern & secure monero node. Written in Rust
Other
122 stars 17 forks source link

Replace `OnceLock` + `fn` with `LazyLock` #256

Closed hinto-janai closed 1 month ago

hinto-janai commented 1 month ago

What

Closes https://github.com/Cuprate/cuprate/issues/236.

This replaces the OnceLock + fns that were used in a LazyLock type of way for the entire codebase. There's other OnceLocks remaining but they are used differently.