GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — refactor(server): name the pull request shared cache read span (#33891) · flamboh/t3code@cd804cf

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/server/src/pullRequest
    • PullRequestService.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/server/src/pullRequest/PullRequestService.ts‎

Copy file name to clipboardExpand all lines: apps/server/src/pullRequest/PullRequestService.ts
+11-6Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,18 @@ function supersedesReading(current: PullRequestReading | undefined, next: PullRe
119119
}
120120

121121
// Retry a shared flight canceled by its previous reader after that flight leaves the cache.
122-
const getShared = <Key, A, E, R>(cache: Cache.Cache<Key, A, E, R>, key: Key) =>
123-
Cache.get(cache, key).pipe(
124-
Effect.catchCauseIf(
125-
(cause) => Cause.hasInterruptsOnly(cause),
126-
(_cause) => Cache.get(cache, key),
122+
const getShared = Effect.fn("PullRequestService.getShared")(
123+
function* <Key, A, E, R>(cache: Cache.Cache<Key, A, E, R>, key: Key) {
124+
return yield* Cache.get(cache, key);
125+
},
126+
(effect, cache, key) =>
127+
effect.pipe(
128+
Effect.catchCauseIf(
129+
(cause) => Cause.hasInterruptsOnly(cause),
130+
(_cause) => Cache.get(cache, key),
131+
),
127132
),
128-
);
133+
);
129134

130135
// Providers request one extra row; 99 stays within GitHub/GitLab's 100-row API limit.
131136
const DEFAULT_REPOSITORY_LIST_LIMIT = 99;

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.