Skip to content

Commit 4e3711f

Browse files
djcRalith
authored andcommitted
quinn: import more types
1 parent c5ab01a commit 4e3711f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

quinn/src/connection.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use crate::{
2626
};
2727
use proto::{
2828
ConnectionError, ConnectionHandle, ConnectionStats, Dir, EndpointEvent, Side, StreamEvent,
29-
StreamId, congestion::Controller,
29+
StreamId, TransportError, TransportErrorCode, congestion::Controller,
3030
};
3131

3232
/// In-progress connection attempt future
@@ -1109,8 +1109,8 @@ impl State {
11091109
self.close(error_code, reason, shared);
11101110
}
11111111
Poll::Ready(None) => {
1112-
return Err(ConnectionError::TransportError(proto::TransportError::new(
1113-
proto::TransportErrorCode::INTERNAL_ERROR,
1112+
return Err(ConnectionError::TransportError(TransportError::new(
1113+
TransportErrorCode::INTERNAL_ERROR,
11141114
"endpoint driver future was dropped".to_string(),
11151115
)));
11161116
}

0 commit comments

Comments
 (0)