Skip to content

Commit

Permalink
chore: rename isStable -> isImmutable
Browse files Browse the repository at this point in the history
  • Loading branch information
nytamin committed Jan 11, 2024
1 parent 7a25938 commit 3436f65
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/single-app/app/expectedPackages.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
"accessors": {
"local": {
"type": "http",
"isStable": true
"isImmutable": true
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion shared/packages/api/src/inputApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ export namespace AccessorOnPackage {
url?: string

/** If true, assumes that a source never changes once it has been fetched. */
isStable?: boolean
isImmutable?: boolean
}
export interface Quantel extends Partial<Accessor.Quantel> {
guid?: string
Expand Down
2 changes: 1 addition & 1 deletion shared/packages/worker/src/worker/accessorHandlers/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export class HTTPAccessorHandle<Metadata> extends GenericAccessorHandle<Metadata
}
}
private async fetchHeader() {
const ttl = this.accessor.isStable
const ttl = this.accessor.isImmutable
? 1000 * 60 * 60 * 24 // 1 day
: 1000 // a second
const { headers, status, statusText } = await this.worker.cacheData(
Expand Down

0 comments on commit 3436f65

Please sign in to comment.