commit | 379b2fc742893079418f3cf0064fd7d8a37d8faf | [log] [tgz] |
---|---|---|
author | Wyatt Hepler <hepler@google.com> | Tue Jun 22 22:54:33 2021 -0700 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Sat Jul 10 00:58:35 2021 +0000 |
tree | 053092ca256add03c60d23bc1f1198882a6d12b6 | |
parent | 41565fecc1ba414cb8db60f92ae0a47a03a546b2 [diff] |
pw_rpc: Disable client stream end callback by default - Supporting a client stream end callback requires ServerReader/Writer object to store a pw::Function, which may be a significant overhead. Many applications may not need this callback, so the callback optional and disable it by default. - Fail with a helpful static_assert if set_on_client_stream_end() is called when that callback is disabled. Change-Id: I4b27e162953534aaa024aaca9e84b12570605fc9 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/51527 Reviewed-by: Alexei Frolov <frolv@google.com> Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
See our website: http://pigweed.dev