Skip to content

Commit

Permalink
Switch to nanoseconds
Browse files Browse the repository at this point in the history
Signed-off-by: Ramona Luczkiewicz <rluczkiewicz@wayfair.com>
  • Loading branch information
Ramona Luczkiewicz committed May 4, 2022
1 parent 33ef2ba commit 75a4abd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/connectors/impls/gbq/writer/sink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ impl Sink for GbqSink {

let append_response = client
.append_rows(stream::iter(vec![request]))
.timeout(Duration::from_secs(self.config.request_timeout))
.timeout(Duration::from_nanos(self.config.request_timeout))
.await;

let append_response = if let Ok(append_response) = append_response {
Expand All @@ -379,7 +379,7 @@ impl Sink for GbqSink {
if let Ok(x) = append_response?
.into_inner()
.next()
.timeout(Duration::from_secs(self.config.request_timeout))
.timeout(Duration::from_nanos(self.config.request_timeout))
.await
{
match x {
Expand Down Expand Up @@ -407,7 +407,7 @@ impl Sink for GbqSink {
.domain_name("bigquerystorage.googleapis.com");

let channel = Channel::from_static("https://bigquerystorage.googleapis.com")
.connect_timeout(Duration::from_secs(self.config.connect_timeout))
.connect_timeout(Duration::from_nanos(self.config.connect_timeout))
.tls_config(tls_config)?
.connect()
.await?;
Expand Down

0 comments on commit 75a4abd

Please sign in to comment.