minor fixes

This commit is contained in:
nora 2022-02-28 16:59:30 +01:00
parent 2be26f7e49
commit beb2187cd6
3 changed files with 17 additions and 6 deletions

View file

@ -46,7 +46,7 @@ pub struct Connection {
pub id: ConnectionId,
pub peer_addr: SocketAddr,
pub global_data: GlobalData,
pub channels: HashMap<u16, ChannelHandle>,
pub channels: HashMap<ChannelNum, ChannelHandle>,
pub exclusive_queues: Vec<Queue>,
}

View file

@ -8,8 +8,8 @@ pub enum ProtocolError {
ConException(#[from] ConException),
#[error("{0}")]
ChannelException(#[from] ChannelException),
#[error("Connection must be closed")]
CloseNow,
#[error("Protocol negotiation failed")]
ProtocolNegotiationFailed,
#[error("Graceful connection closing requested")]
GracefullyClosed,
}