Skip to content

Commit

Permalink
fix(http2): fix import of h2::Reason to work on 1.26
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Apr 9, 2019
1 parent b3deb0c commit 5680d94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proto/h2/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5680d94

Please sign in to comment.