Skip to content

Commit b519801

Browse files
committed
Fix variable name
1 parent dff7b51 commit b519801

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HttpClient/middlewares/cache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ export const cacheMiddleware = ({ type, storage }: CacheOptions) => {
234234
[HttpCacheLogFields.RESPONSE_TYPE]: responseType,
235235
})
236236
} catch (error) {
237-
ErrorReport.create({ originalError: error }).injectOnSpan(cacheReadSpan)
237+
ErrorReport.create({ originalError: error }).injectOnSpan(cacheWriteSpan)
238238
logger?.warn({ message: 'Error writing to the HttpClient cache', error })
239239
} finally {
240240
cacheWriteSpan?.finish()

0 commit comments

Comments
 (0)