Repair concurrent Graph recovery, Source Job residency and developer source provisioning
This commit is contained in:
@@ -22,6 +22,9 @@ export class CandidateMetadataBudget {
|
||||
snapshot() {
|
||||
return { bytes: this.bytes, candidates: this.scopes, owners: this.owners.size, limits: this.limits };
|
||||
}
|
||||
ownedBytes(owner: string) {
|
||||
return this.owners.get(owner) ?? 0;
|
||||
}
|
||||
acquire(owner: string) {
|
||||
if (!owner || owner.length > 4096) throw Error("INVALID_CANDIDATE_METADATA_OWNER");
|
||||
if (this.scopes >= this.limits.candidates) throw Error("CANDIDATE_METADATA_LIMIT");
|
||||
|
||||
Reference in New Issue
Block a user