diff --git a/crates/next-api/src/operation.rs b/crates/next-api/src/operation.rs index 9e95cd001bfbb..aa0bff05f8712 100644 --- a/crates/next-api/src/operation.rs +++ b/crates/next-api/src/operation.rs @@ -9,6 +9,7 @@ use crate::{ }; /// A derived type of Entrypoints, but with VcOperation for every endpoint. +/// /// This is needed to call `write_to_disk` which expects an `VcOperation`. /// This is important as VcOperations can be stored in the VersionedContentMap and can be exposed to /// JS via napi. diff --git a/crates/next-api/src/versioned_content_map.rs b/crates/next-api/src/versioned_content_map.rs index de5f23a8f5e80..79c47e549ac52 100644 --- a/crates/next-api/src/versioned_content_map.rs +++ b/crates/next-api/src/versioned_content_map.rs @@ -251,8 +251,6 @@ impl VersionedContentMap { return Vc::cell(None); }; // Need to reconnect the operation to the map - let compute_entry = compute_entry.connect(); - - compute_entry + compute_entry.connect() } }