Skip to content

Commit

Permalink
increase deadline timer
Browse files Browse the repository at this point in the history
  • Loading branch information
lupin012 committed Jan 2, 2025
1 parent 90a6c09 commit 1780eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion silkworm/infra/grpc/client/call.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Task<Response> unary_rpc(
agrpc::GrpcContext& grpc_context,
boost::asio::cancellation_slot* cancellation_slot = nullptr) {
grpc::ClientContext client_context;
client_context.set_deadline(std::chrono::system_clock::now() + std::chrono::seconds(60));
client_context.set_deadline(std::chrono::system_clock::now() + std::chrono::seconds(120));
if (cancellation_slot) {
cancellation_slot->assign([&client_context](boost::asio::cancellation_type /*type*/) {
client_context.TryCancel();
Expand Down

0 comments on commit 1780eb6

Please sign in to comment.