forked from mirror/misskey
err msg
This commit is contained in:
parent
13af6f2313
commit
aabdb666b7
@ -75,7 +75,7 @@ export class FetchInstanceMetadataService {
|
|||||||
const _instance = await this.federatedInstanceService.fetch(host);
|
const _instance = await this.federatedInstanceService.fetch(host);
|
||||||
const now = Date.now();
|
const now = Date.now();
|
||||||
if (_instance && _instance.infoUpdatedAt && (now - _instance.infoUpdatedAt.getTime() < REMOTE_SERVER_CACHE_TTL)) {
|
if (_instance && _instance.infoUpdatedAt && (now - _instance.infoUpdatedAt.getTime() < REMOTE_SERVER_CACHE_TTL)) {
|
||||||
throw new Error('Skip because updated recently');
|
throw new Error(`Skip because updated recently ${_instance.infoUpdatedAt.toJSON()}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user