Skip to content

Commit

Permalink
Update FetchInstanceMetadataService.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
u1-liquid authored Oct 27, 2023
1 parent ebf8083 commit bf96617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/core/FetchInstanceMetadataService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class FetchInstanceMetadataService {
public async fetchInstanceMetadata(instance: MiInstance, force = false): Promise<void> {
const host = instance.host;
// Acquire mutex to ensure no parallel runs
if (!force || !await this.tryLock(host)) return;
if (!await this.tryLock(host) && !force) return;
try {
if (!force) {
const _instance = await this.federatedInstanceService.fetch(host);
Expand Down

0 comments on commit bf96617

Please sign in to comment.