Skip to content

Commit

Permalink
feat: Increase default Read API timeout to 60s
Browse files Browse the repository at this point in the history
  • Loading branch information
farhan0102 committed Jun 20, 2023
1 parent 50bef38 commit 7956475
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
public class BigQueryOptions extends ServiceOptions<BigQuery, BigQueryOptions> {

private static final String API_SHORT_NAME = "BigQuery";
private static final int DEFAULT_READ_API_TIME_OUT = 60000;
private static final String BIGQUERY_SCOPE = "https://www.googleapis.com/auth/bigquery";
private static final Set<String> SCOPES = ImmutableSet.of(BIGQUERY_SCOPE);
private static final long serialVersionUID = -2437598817433266049L;
Expand Down Expand Up @@ -113,7 +114,7 @@ public TransportOptions getDefaultTransportOptions() {
}

public static HttpTransportOptions getDefaultHttpTransportOptions() {
return HttpTransportOptions.newBuilder().build();
return HttpTransportOptions.newBuilder().setReadTimeout(DEFAULT_READ_API_TIME_OUT).build();
}

@Override
Expand Down

0 comments on commit 7956475

Please sign in to comment.