Skip to content

Commit

Permalink
fix review issues
Browse files Browse the repository at this point in the history
  • Loading branch information
SvartMetal committed Jan 9, 2025
1 parent 7809b15 commit 038d493
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cloud/blockstore/libs/discovery/test_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#include <util/system/mutex.h>
#include <util/thread/factory.h>

#include <chrono>

namespace NCloud::NBlockStore::NDiscovery {

namespace {
Expand Down Expand Up @@ -162,7 +164,9 @@ struct TFakeBlockStoreServer::TImpl
void* tag;
bool ok;
while (!AtomicGet(ShouldStop)) {
const auto deadline = gpr_time_0(GPR_TIMESPAN);
const auto deadline =
std::chrono::system_clock::now() +
std::chrono::milliseconds(100);
auto status = CQ->AsyncNext(&tag, &ok, deadline);
if (status != grpc::CompletionQueue::GOT_EVENT) {
continue;
Expand Down

0 comments on commit 038d493

Please sign in to comment.