Skip to content

Commit

Permalink
[ISSUE #1310]⚡️Refactor AllocateMessageQueueStrategy (#1311)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsm authored Nov 25, 2024
1 parent 6e8aaac commit 79a345a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ use crate::Result;
pub trait AllocateMessageQueueStrategy: Send + Sync {
fn allocate(
&self,
consumer_group: &str,
current_cid: &str,
consumer_group: &CheetahString,
current_cid: &CheetahString,
mq_all: &[MessageQueue],
cid_all: &[CheetahString],
) -> Result<Vec<MessageQueue>>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ pub struct AllocateMessageQueueAveragely;
impl AllocateMessageQueueStrategy for AllocateMessageQueueAveragely {
fn allocate(
&self,
consumer_group: &str,
current_cid: &str,
consumer_group: &CheetahString,
current_cid: &CheetahString,
mq_all: &[MessageQueue],
cid_all: &[CheetahString],
) -> Result<Vec<MessageQueue>> {
Expand Down

0 comments on commit 79a345a

Please sign in to comment.