tart exec: do not limit RPC call duration to 1 second

This commit is contained in:
Nikolay Edigaryev 2025-06-11 20:15:18 +02:00
parent b625c04131
commit 8dc8b644b2
1 changed files with 1 additions and 2 deletions

View File

@ -79,8 +79,7 @@ struct Exec: AsyncParsableCommand {
private func execute(_ channel: GRPCChannel) async throws { private func execute(_ channel: GRPCChannel) async throws {
let agentAsyncClient = AgentAsyncClient(channel: channel) let agentAsyncClient = AgentAsyncClient(channel: channel)
let callOptions = CallOptions(timeLimit: .timeout(.seconds(1))) let execCall = agentAsyncClient.makeExecCall()
let execCall = agentAsyncClient.makeExecCall(callOptions: callOptions)
try await execCall.requestStream.send(.with { try await execCall.requestStream.send(.with {
$0.type = .command(.with { $0.type = .command(.with {