From 2bfc598b8a1d3d2eb498463042d0013f8a12d56b Mon Sep 17 00:00:00 2001 From: Googler Date: Wed, 10 Jun 2026 18:41:32 -0700 Subject: [PATCH] [peregrine] extend transport api for request pipeline PiperOrigin-RevId: 930201982 --- transport/socket_transport.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/transport/socket_transport.h b/transport/socket_transport.h index 7398da2..19bf21c 100644 --- a/transport/socket_transport.h +++ b/transport/socket_transport.h @@ -60,12 +60,20 @@ class SocketTransport final : public peregrine::Transport { SocketTransport(const SocketTransport&) = delete; SocketTransport& operator=(const SocketTransport&) = delete; - // Posts a batch of asynchronous transport requests to communicate with + // Posts a number of asynchronous transport requests to communicate with // `peer`. Returns a process-unique handle to poll completion. absl::StatusOr Post( std::string_view peer, absl::Span requests) override; + // Posts a number of asynchronous transport requests to communicate with + // `peer` using the given `handle` returned by a previous `Post` call. + absl::Status Post(std::string_view peer, + absl::Span requests, + peregrine::Handle handle) override { + return absl::InvalidArgumentError("Unsupported."); + } + // Queries the completion status of `handle`. Removes handle if completed. absl::StatusOr Poll(peregrine::Handle handle) override;