Skip to content

Commit 8e84c9d

Browse files
authored
[ISSUE #4025]Introduce ChannelId type alias for improved clarity in channel struct (#4026)
1 parent 95022d6 commit 8e84c9d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rocketmq-remoting/src/net/channel.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,14 @@ use crate::base::response_future::ResponseFuture;
3535
use crate::connection::Connection;
3636
use crate::protocol::remoting_command::RemotingCommand;
3737

38+
pub type ChannelId = CheetahString;
39+
3840
#[derive(Clone)]
3941
pub struct Channel {
4042
inner: WeakArcMut<ChannelInner>,
4143
local_address: SocketAddr,
4244
remote_address: SocketAddr,
43-
channel_id: CheetahString,
45+
channel_id: ChannelId,
4446
}
4547

4648
impl Channel {

0 commit comments

Comments
 (0)