Skip to content

Commit

Permalink
Fix more
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Nov 27, 2024
1 parent 3b58c1a commit 2ca0fe3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions crates/next-api/src/instrumentation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ pub struct InstrumentationEndpoint {
impl InstrumentationEndpoint {
#[turbo_tasks::function]
pub fn new(
project: Vc<Project>,
asset_context: Vc<Box<dyn AssetContext>>,
source: Vc<Box<dyn Source>>,
project: ResolvedVc<Project>,
asset_context: ResolvedVc<Box<dyn AssetContext>>,
source: ResolvedVc<Box<dyn Source>>,
is_edge: bool,
app_dir: Option<ResolvedVc<FileSystemPath>>,
ecmascript_client_reference_transition_name: Option<Vc<RcStr>>,
Expand All @@ -71,15 +71,15 @@ impl InstrumentationEndpoint {
let userland_module = self
.asset_context
.process(
self.source,
*self.source,
Value::new(ReferenceType::Entry(EntryReferenceSubType::Instrumentation)),
)
.module()
.to_resolved()
.await?;

let edge_entry_module = wrap_edge_entry(
self.asset_context,
*self.asset_context,
self.project.project_path(),
*userland_module,
"instrumentation".into(),
Expand Down Expand Up @@ -117,7 +117,7 @@ impl InstrumentationEndpoint {
}),
this.project.next_mode(),
)
.resolve_entries(this.asset_context)
.resolve_entries(*this.asset_context)
.await?
.clone_value();

Expand Down Expand Up @@ -169,7 +169,7 @@ impl InstrumentationEndpoint {
}),
this.project.next_mode(),
)
.resolve_entries(this.asset_context),
.resolve_entries(*this.asset_context),
OutputAssets::empty(),
Value::new(AvailabilityInfo::Root),
)
Expand Down Expand Up @@ -225,7 +225,7 @@ impl InstrumentationEndpoint {
let mut output_assets = vec![chunk];
if this.project.next_mode().await?.is_production() {
output_assets.push(ResolvedVc::upcast(
NftJsonAsset::new(this.project, *chunk, vec![])
NftJsonAsset::new(*this.project, *chunk, vec![])
.to_resolved()
.await?,
));
Expand Down
4 changes: 2 additions & 2 deletions crates/next-api/src/middleware.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl MiddlewareEndpoint {
}),
self.project.next_mode(),
)
.resolve_entries(self.asset_context)
.resolve_entries(*self.asset_context)
.await?
.clone_value();

Expand Down Expand Up @@ -261,7 +261,7 @@ impl MiddlewareEndpoint {
fn userland_module(&self) -> Vc<Box<dyn Module>> {
self.asset_context
.process(
self.source,
*self.source,
Value::new(ReferenceType::Entry(EntryReferenceSubType::Middleware)),
)
.module()
Expand Down

0 comments on commit 2ca0fe3

Please sign in to comment.