Skip to content

Commit f27018a

Browse files
authored
Update translate_batch_translate_text.js (#3226)
Recreates https://github.com/googleapis/nodejs-translate/pull/889/files Addresses b/247881608
1 parent 0c2aaa3 commit f27018a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

translate/v3/translate_batch_translate_text.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ function main(
5555
},
5656
};
5757

58+
// Setup timeout for long-running operation. Timeout specified in ms.
5859
const options = {timeout: 240000};
59-
// Batch translate text using a long-running operation
60+
// Batch translate text using a long-running operation with a timeout of 240000ms.
6061
const [operation] = await translationClient.batchTranslateText(
6162
request,
6263
options

0 commit comments

Comments
 (0)