Skip to content

Commit

Permalink
Merge pull request #1769 from ctiller/create-pull-request/patch-d904c5a
Browse files Browse the repository at this point in the history
Automated fix for refs/heads/v3-batch
  • Loading branch information
ctiller authored Jan 15, 2024
2 parents d904c5a + d2ea76f commit 25316aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions build_autogenerated.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions src/core/ext/transport/chaotic_good/call_batcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#ifndef GRPC_SRC_CORE_EXT_TRANSPORT_CHAOTIC_GOOD_CALL_BATCHER_H
#define GRPC_SRC_CORE_EXT_TRANSPORT_CHAOTIC_GOOD_CALL_BATCHER_H

#include <grpc/support/port_platform.h>

#include <type_traits>

#include "src/core/ext/transport/chaotic_good/frame.h"
Expand Down Expand Up @@ -95,8 +97,9 @@ class CallBatcher {
auto SendFragment(Fragment fragment) {
return Map(sender_.Send(std::move(fragment)),
[](bool success) -> absl::Status {
if (!success)
if (!success) {
return absl::UnavailableError("Transport closed.");
}
return absl::OkStatus();
});
}
Expand Down Expand Up @@ -144,4 +147,4 @@ class CallBatcher {
} // namespace chaotic_good
} // namespace grpc_core

#endif
#endif // GRPC_SRC_CORE_EXT_TRANSPORT_CHAOTIC_GOOD_CALL_BATCHER_H

0 comments on commit 25316aa

Please sign in to comment.