diff --git a/src/workerd/io/worker-entrypoint.c++ b/src/workerd/io/worker-entrypoint.c++ index 23d432e912e..73e793b6eb1 100644 --- a/src/workerd/io/worker-entrypoint.c++ +++ b/src/workerd/io/worker-entrypoint.c++ @@ -8,7 +8,6 @@ #include #include #include -#include #include #include #include @@ -314,15 +313,11 @@ kj::Promise WorkerEntrypoint::request(kj::HttpMethod method, // Now that the IoContext is dropped (unless it had waitUntil()s), we can finish proxying // without pinning it or the isolate into memory. KJ_IF_SOME(p, proxyTask) { - if (util::Autogate::isEnabled(util::AutogateKey::RESPONSE_STREAM_DISCONNECTED_STATUS)) { - return p.catch_( - [metrics = kj::mv(metrics)](kj::Exception&& e) mutable -> kj::Promise { - metrics->reportFailure(e, RequestObserver::FailureSource::DEFERRED_PROXY); - return kj::mv(e); - }); - } else { - return kj::mv(p); - } + return p.catch_( + [metrics = kj::mv(metrics)](kj::Exception&& e) mutable -> kj::Promise { + metrics->reportFailure(e, RequestObserver::FailureSource::DEFERRED_PROXY); + return kj::mv(e); + }); } else { return kj::READY_NOW; } diff --git a/src/workerd/util/autogate.c++ b/src/workerd/util/autogate.c++ index 364d34b8af8..0220db19bfb 100644 --- a/src/workerd/util/autogate.c++ +++ b/src/workerd/util/autogate.c++ @@ -17,8 +17,6 @@ kj::StringPtr KJ_STRINGIFY(AutogateKey key) { return "test-workerd"_kj; case AutogateKey::PYODIDE_LOAD_EXTERNAL: return "pyodide-load-external"_kj; - case AutogateKey::RESPONSE_STREAM_DISCONNECTED_STATUS: - return "response-stream-disconnected-status"_kj; case AutogateKey::NumOfKeys: KJ_FAIL_ASSERT("NumOfKeys should not be used in getName"); } diff --git a/src/workerd/util/autogate.h b/src/workerd/util/autogate.h index fcbe917f656..8883b0aeb08 100644 --- a/src/workerd/util/autogate.h +++ b/src/workerd/util/autogate.h @@ -14,8 +14,6 @@ namespace workerd::util { enum class AutogateKey { TEST_WORKERD, PYODIDE_LOAD_EXTERNAL, - // Enables reporting of disconnection during deferred proxying as a new status. - RESPONSE_STREAM_DISCONNECTED_STATUS, NumOfKeys // Reserved for iteration. };