Fix to drop using a delay

This commit is contained in:
Ilia Rostovtsev
2020-04-26 11:43:48 +03:00
parent 7ae3b89b66
commit fc0676c857

View File

@@ -793,9 +793,6 @@ sub translate
# Replace language code to match what translator expects
$target =~ s/_/-/;
# Prevent service unavailable error, reducing the call rate
select(undef, undef, undef, 0.25);
my $tr;
my $rsp = "https://translation.googleapis.com/language/translate/v2";
my $rsh = { 'Authorization' => "Bearer \"@{[trim($token)]}\"",