@@ -274,22 +274,13 @@ export function createRequestHandler(deps: RequestHandlerDependencies) {
274
274
analytics . track ( { type : 'artifact' , value : artifactType , version : 'v0' } , targetId ) ;
275
275
276
276
const kvStorageKey = `target:${ targetId } :${ storageKeyType } ` ;
277
- const rawValueAction = await deps
278
- . getArtifactAction ( targetId , null , storageKeyType , null )
279
- . catch ( ( ) => {
280
- // Do an extra attempt to read the value from the store.
281
- // If we see that a single retry does not help, we should do a proper retry logic here.
282
- // Why not now? Because we do have a new implementation that is based on R2 storage and this change is simple enough.
283
- return deps . getArtifactAction ( targetId , null , storageKeyType , null ) ;
284
- } ) ;
277
+ const rawValueAction = await deps . getArtifactAction ( targetId , null , storageKeyType , null ) ;
285
278
286
279
if ( rawValueAction . type === 'redirect' ) {
287
280
// We're using here a private location, because the public S3 endpoint may differ from the internal S3 endpoint. E.g. within a docker network,
288
281
// and we're fetching the artifact from within the private network.
289
282
// If they are the same, private and public locations will be the same.
290
- const rawValue = await deps
291
- . fetchText ( rawValueAction . location . private )
292
- . catch ( ( ) => deps . fetchText ( rawValueAction . location . private ) ) ;
283
+ const rawValue = await deps . fetchText ( rawValueAction . location . private ) ;
293
284
294
285
const etag = await createETag ( `${ kvStorageKey } |${ rawValue } ` ) ;
295
286
const ifNoneMatch = request . headers . get ( 'if-none-match' ) ;
0 commit comments