Skip to content

Commit

Permalink
Unlock if setting the incremental cache fails
Browse files Browse the repository at this point in the history
  • Loading branch information
unstubbable committed Aug 9, 2024
1 parent 5f0ad22 commit eab1c9d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/next/src/server/lib/patch-fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -627,13 +627,12 @@ export function createPatchedFetcher(
tags,
}
)

await handleUnlock()
}
})
.catch((error) =>
console.warn(`Failed to set fetch cache`, input, error)
)
.finally(handleUnlock)
}

if (!deferUnlockUntilCacheIsSet) {
Expand Down

0 comments on commit eab1c9d

Please sign in to comment.