We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 004b6e5 commit 733a7c2Copy full SHA for 733a7c2
1 file changed
core/src/sql/db_connection_pool/runtime.rs
@@ -6,8 +6,6 @@ use std::{future::Future, sync::OnceLock};
6
use tokio::runtime::{Handle, Runtime};
7
8
pub fn get_tokio_runtime() -> &'static Runtime {
9
- // TODO: this function is a repetition of python/src/utils.rs::get_tokio_runtime.
10
- // Think about how to refactor it
11
static RUNTIME: OnceLock<Runtime> = OnceLock::new();
12
RUNTIME.get_or_init(|| Runtime::new().expect("Failed to create Tokio runtime"))
13
}
0 commit comments