Commit 613428df authored by Brandon Schlinker's avatar Brandon Schlinker Committed by Facebook GitHub Bot

Fix platform build error caused by lack of return

Summary: Some build environments will complain that there is no return specified for the two modified functions despite the `CHECK(false)`. Switching to `folly::terminate_with` resolves.

Differential Revision: D22659960

fbshipit-source-id: cff7dd1366fab5c2530584b1f57821bc26b672d4
parent ccd77b85
......@@ -795,7 +795,8 @@ class AsyncTransport : public DelayedDestruction,
* @param observer Observer to add (implements LifecycleObserver).
*/
virtual void addLifecycleObserver(LifecycleObserver* /* observer */) {
CHECK(false) << "addLifecycleObserver() not supported";
folly::terminate_with<std::runtime_error>(
"addLifecycleObserver() not supported");
}
/**
......@@ -805,7 +806,8 @@ class AsyncTransport : public DelayedDestruction,
* @return Whether observer found and removed from list.
*/
virtual bool removeLifecycleObserver(LifecycleObserver* /* observer */) {
CHECK(false) << "removeLifecycleObserver() not supported";
folly::terminate_with<std::runtime_error>(
"removeLifecycleObserver() not supported");
}
/**
......@@ -815,7 +817,8 @@ class AsyncTransport : public DelayedDestruction,
*/
FOLLY_NODISCARD virtual std::vector<LifecycleObserver*>
getLifecycleObservers() const {
CHECK(false) << "getLifecycleObservers() not supported";
folly::terminate_with<std::runtime_error>(
"getLifecycleObservers() not supported");
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment