Skip to content

Commit bc223b9

Browse files
committed
Increase gRPC client deadline to 3 seconds and copy additional proto files to binary directory
1 parent f30c89f commit bc223b9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,8 @@ file(COPY
6565
formations-dt formations-keeper formations-taker player.conf coach.conf start-debug.sh start-offline.sh start-debug-agent.sh
6666
DESTINATION ${PROJECT_BINARY_DIR}/bin
6767
)
68+
69+
file(COPY
70+
${PROJECT_SOURCE_DIR}/idl/grpc/service.proto ${PROJECT_SOURCE_DIR}/idl/thrift/soccer_service.thrift
71+
DESTINATION ${PROJECT_BINARY_DIR}/bin
72+
)

src/grpc-client/grpc_client_player.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ void GrpcClientPlayer::getActions()
180180
protos::PlayerActions actions;
181181
ClientContext context;
182182
// Set the deadline to 1 second from now
183-
auto deadline = std::chrono::system_clock::now() + std::chrono::seconds(1);
183+
auto deadline = std::chrono::system_clock::now() + std::chrono::seconds(3);
184184
context.set_deadline(deadline);
185185

186186
Status status = M_stub_->GetPlayerActions(&context, state, &actions);

0 commit comments

Comments
 (0)