@@ -85,7 +85,7 @@ TEST(SendQueue, TestZeroCopyQueueCleanRemoteShutdown) {
8585 BulkTransportInterface::SendMessage msg;
8686 msg.data = txt_msg.data ();
8787 msg.size = txt_msg.size ();
88- msg.on_send = [](int id, size_t size) {};
88+ msg.on_send = [](absl::StatusOr< int > id, size_t size) {};
8989 msg.on_done = [¬ify]() { notify.Notify (); };
9090 msg_queue->ScheduleSendWork (std::move (msg));
9191 notify.WaitForNotification ();
@@ -124,7 +124,7 @@ TEST(SendQueue, SendAndRecvQueuesArtificialLimit) {
124124 BulkTransportInterface::SendMessage msg;
125125 msg.data = txt_msg.data ();
126126 msg.size = txt_msg.size ();
127- msg.on_send = [](int id, size_t size) {};
127+ msg.on_send = [](absl::StatusOr< int > id, size_t size) {};
128128 msg.on_done = [&mu, &send_count]() {
129129 absl::MutexLock l (mu);
130130 --send_count;
@@ -230,9 +230,9 @@ TEST(SocketBulkTransportFactoryTest, SendAndRecvWithFactory) {
230230 BulkTransportInterface::SendMessage msg;
231231 msg.data = txt_msgs[i].data ();
232232 msg.size = txt_msgs[i].size ();
233- msg.on_send = [&, i](int id, size_t size) {
233+ msg.on_send = [&, i](absl::StatusOr< int > id, size_t size) {
234234 absl::MutexLock l (mu);
235- send_queue.push_back ({i, id});
235+ send_queue.push_back ({i, id. value () });
236236 };
237237 msg.on_done = [&mu, &send_count]() {
238238 absl::MutexLock l (mu);
0 commit comments