UBERF-8120: Fix high CPU usage in github service (#6573)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2024-09-16 11:52:05 +07:00
committed by GitHub
parent 9095853f7b
commit 310f18c3ff
7 changed files with 16 additions and 12 deletions
@@ -103,7 +103,7 @@ export class ProjectsSyncManager implements DocSyncManager {
): Promise<DocumentUpdate<DocSyncInfo> | undefined> {
const container = await this.provider.getContainer(info.space)
if (container?.container === undefined) {
return {}
return { needSync: githubSyncVersion }
}
const okit = await this.provider.getOctokit(container.project.createdBy as Ref<PersonAccount>)