Skip to content

Commit 694d79d

Browse files
authored
Bug fix: avoid holding reference in future. (#333)
1 parent 3f0b9b0 commit 694d79d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/builder/analyzer.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,9 @@ impl AnalyzerContext<'_> {
714714
.data
715715
.add_field(reactive_op.name.clone(), &output_type)?;
716716
let reactive_op = reactive_op.clone();
717+
let logic_fingerprinter = Fingerprinter::default()
718+
.with(&op.op)?
719+
.with(&output_type.without_attrs())?;
717720
async move {
718721
trace!("Start building executor for transform op `{}`", reactive_op.name);
719722
let executor = executor.await.with_context(|| {
@@ -725,10 +728,8 @@ impl AnalyzerContext<'_> {
725728
let function_exec_info = AnalyzedFunctionExecInfo {
726729
enable_cache,
727730
behavior_version,
728-
fingerprinter: Fingerprinter::default()
729-
.with(&op.op)?
730-
.with(&behavior_version)?
731-
.with(&output_type.without_attrs())?,
731+
fingerprinter: logic_fingerprinter
732+
.with(&behavior_version)?,
732733
output_type: output_type.typ.clone(),
733734
};
734735
if function_exec_info.enable_cache

0 commit comments

Comments
 (0)