fix(http2): fix import of h2::Reason to work on 1.26

This commit is contained in:
Sean McArthur
2019-04-09 14:06:24 -07:00
parent b3deb0cbed
commit 5680d94419

View File

@@ -145,7 +145,7 @@ where
debug!("service closed: {}", err); debug!("service closed: {}", err);
let reason = err.h2_reason(); let reason = err.h2_reason();
if reason == h2::Reason::NO_ERROR { if reason == Reason::NO_ERROR {
// NO_ERROR is only used for graceful shutdowns... // NO_ERROR is only used for graceful shutdowns...
trace!("interpretting NO_ERROR user error as graceful_shutdown"); trace!("interpretting NO_ERROR user error as graceful_shutdown");
self.conn.graceful_shutdown(); self.conn.graceful_shutdown();