From 9b1e665b0851d9c5a5ba3e5413084acff08dcf8f Mon Sep 17 00:00:00 2001 From: Tesla <1394466835@qq.com> Date: Wed, 4 Dec 2024 13:29:45 +0800 Subject: [PATCH] set gil_used false --- bindings/python/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/src/lib.rs b/bindings/python/src/lib.rs index f05b4b4de85b..578826add64d 100644 --- a/bindings/python/src/lib.rs +++ b/bindings/python/src/lib.rs @@ -70,7 +70,7 @@ pub use options::*; /// /// asyncio.run(main()) /// ``` -#[pymodule] +#[pymodule(gil_used = false)] fn _opendal(py: Python, m: &Bound<'_, PyModule>) -> PyResult<()> { m.add_class::()?; m.add_class::()?;