[chaotic-good] Connect timeout is in seconds, not nanoseconds (#35938)

Unit conversion was a bit off here :)

Closes #35938

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35938 from ctiller:timeout43 e5eacb4478
PiperOrigin-RevId: 608641323
pull/35763/head^2
Craig Tiller 1 year ago committed by Copybara-Service
parent 5227db884d
commit 469449d95e
  1. 4
      src/core/ext/transport/chaotic_good/client/chaotic_good_connector.cc

@ -139,7 +139,7 @@ auto ChaoticGoodConnector::WaitForDataEndpointSetup(
self->args_.channel_args),
ResourceQuota::Default()->memory_quota()->CreateMemoryAllocator(
"data_endpoint_connection"),
EventEngine::Duration(kTimeoutSecs));
std::chrono::seconds(kTimeoutSecs));
return TrySeq(Race(
TrySeq(self->data_endpoint_ready_.Wait(),
@ -251,7 +251,7 @@ void ChaoticGoodConnector::Connect(const Args& args, Result* result,
args_.channel_args),
ResourceQuota::Default()->memory_quota()->CreateMemoryAllocator(
"data_endpoint_connection"),
EventEngine::Duration(kTimeoutSecs));
std::chrono::seconds(kTimeoutSecs));
}
void ChaoticGoodConnector::OnHandshakeDone(void* arg, grpc_error_handle error) {

Loading…
Cancel
Save