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 ab6544f commit 90e6fc5
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 90e6fc5

Please sign in to comment.