From d113c3ac6b0970ad2b40f72b196f5174374adfc0 Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Wed, 17 Sep 2025 11:57:23 +0300 Subject: [PATCH] core/function: Wrap ExtFunc in Arc Make it Send. --- core/function.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/function.rs b/core/function.rs index 24960d2e7..b2858af4a 100644 --- a/core/function.rs +++ b/core/function.rs @@ -1,6 +1,5 @@ use std::fmt; use std::fmt::{Debug, Display}; -use std::rc::Rc; use std::sync::Arc; use turso_ext::{FinalizeFunction, InitAggFunction, ScalarFunction, StepFunction}; @@ -204,7 +203,7 @@ pub enum AggFunc { JsonbGroupObject, #[cfg(feature = "json")] JsonGroupObject, - External(Rc), + External(Arc), } impl PartialEq for AggFunc { @@ -218,7 +217,7 @@ impl PartialEq for AggFunc { | (Self::StringAgg, Self::StringAgg) | (Self::Sum, Self::Sum) | (Self::Total, Self::Total) => true, - (Self::External(a), Self::External(b)) => Rc::ptr_eq(a, b), + (Self::External(a), Self::External(b)) => Arc::ptr_eq(a, b), _ => false, } }