mirror of
https://github.com/p-stream/p-stream.git
synced 2026-01-11 20:10:32 +00:00
Merge branch 'production' of https://github.com/vlOd2/p-stream into production
This commit is contained in:
commit
f8b9f663be
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ class Translator {
|
|||
let attempts = 0;
|
||||
const errors: any[] = [];
|
||||
|
||||
while (!result && attempts < 3) {
|
||||
while (!result && attempts < this.serviceCfg.maxRetryCount) {
|
||||
try {
|
||||
result = await this.service.translate(
|
||||
content.text,
|
||||
|
|
|
|||
Loading…
Reference in a new issue