WBXOQKTZMWSXOFGAIBK2R2MGN5DXOQOQV7QPLVUIKFXWUYFXEFRAC
return await this.repository.getChannels();
let children;
// Retry if the pristine is locked.
while (!children) {
try {
children = await this.repository.getChannels();
} catch (err) {
if (!(err instanceof Error) || !err.message.includes('Pristine locked')) {
throw err;
}
}
}
return children;
return await this.repository.getLog();
let children;
// Retry if the pristine is locked. TODO: More robust solution
while (!children) {
try {
children = await this.repository.getLog();
} catch (err) {
if (!(err instanceof Error) || !err.message.includes('Pristine locked')) {
throw err;
}
}
}
return children;