From 5680d9441903d6c8d17c19b3ea1e054af76bb08d Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Tue, 9 Apr 2019 14:06:24 -0700 Subject: [PATCH] fix(http2): fix import of h2::Reason to work on 1.26 --- src/proto/h2/server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proto/h2/server.rs b/src/proto/h2/server.rs index 4f1b921e61..28a3de65d4 100644 --- a/src/proto/h2/server.rs +++ b/src/proto/h2/server.rs @@ -145,7 +145,7 @@ where debug!("service closed: {}", err); let reason = err.h2_reason(); - if reason == h2::Reason::NO_ERROR { + if reason == Reason::NO_ERROR { // NO_ERROR is only used for graceful shutdowns... trace!("interpretting NO_ERROR user error as graceful_shutdown"); self.conn.graceful_shutdown();