Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/agent-client-protocol/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,14 +282,14 @@
IncomingMessage::Request { id, request } => {
let outgoing_tx = outgoing_tx.clone();
let handler = handler.clone();
spawn(

Check warning on line 285 in src/agent-client-protocol/src/rpc.rs

View workflow job for this annotation

GitHub Actions / Build

Diff in /home/runner/work/rust-sdk/rust-sdk/src/agent-client-protocol/src/rpc.rs
async move {
let result = handler.handle_request(request).await;
outgoing_tx
.unbounded_send(OutgoingMessage::Response(Response::new(
id, result,
)))
.ok();
if let Err(e) = outgoing_tx.unbounded_send(OutgoingMessage::Response(Response::new(
id, result,
))) {
log::error!("failed to send response to peer: {e:?}");
}
}
.boxed_local(),
);
Expand Down
Loading