Skip to content

Commit

Permalink
refactor(github): Use single cache namespace for release attachments
Browse files Browse the repository at this point in the history
  • Loading branch information
zharinov committed Aug 26, 2024
1 parent 976a66b commit c8b9f41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/modules/datasource/github-release-attachments/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class GithubReleaseAttachmentsDatasource extends Datasource {
ttlMinutes: 1440,
namespace: `datasource-${GithubReleaseAttachmentsDatasource.id}`,
key: (release: GithubRestRelease, digest: string) =>
`${release.html_url}:${digest}`,
`findDigestFile:${release.html_url}:${digest}`,
})
async findDigestFile(
release: GithubRestRelease,
Expand Down Expand Up @@ -83,9 +83,9 @@ export class GithubReleaseAttachmentsDatasource extends Datasource {

@cache({
ttlMinutes: 1440,
namespace: 'datasource-github-releases',
namespace: `datasource-${GithubReleaseAttachmentsDatasource.id}`,
key: (asset: GithubRestAsset, algorithm: string) =>
`${asset.browser_download_url}:${algorithm}:assetDigest`,
`downloadAndDigest:${asset.browser_download_url}:${algorithm}`,
})
async downloadAndDigest(
asset: GithubRestAsset,
Expand Down

0 comments on commit c8b9f41

Please sign in to comment.