Skip to content

Commit

Permalink
[chaotic-good] Connect timeout is in seconds, not nanoseconds (grpc#3…
Browse files Browse the repository at this point in the history
…5938)

Unit conversion was a bit off here :)

Closes grpc#35938

COPYBARA_INTEGRATE_REVIEW=grpc#35938 from ctiller:timeout43 e5eacb4
PiperOrigin-RevId: 608641323
  • Loading branch information
ctiller authored and copybara-github committed Feb 20, 2024
1 parent 5227db8 commit 469449d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 469449d

Please sign in to comment.