Skip to content

Commit 3d56efb

Browse files
authored
[ISSUE #437]🔥Remove useless code (#438)
1 parent 62c4360 commit 3d56efb

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

rocketmq-broker/src/processor/send_message_processor.rs

-25
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ use rocketmq_common::{
2626
message_single::{MessageExt, MessageExtBrokerInner},
2727
MessageConst,
2828
},
29-
mix_all::RETRY_GROUP_TOPIC_PREFIX,
3029
topic::TopicValidator,
3130
},
3231
utils::{message_utils, util_all},
@@ -215,30 +214,6 @@ impl<MS: MessageStore> SendMessageProcessor<MS> {
215214
return Some(response);
216215
}
217216

218-
if request_header.topic.len() > i8::MAX as usize {
219-
return Some(
220-
response
221-
.set_code(ResponseCode::MessageIllegal)
222-
.set_remark(Some(format!(
223-
"message topic length too long {}",
224-
request_header.topic().len()
225-
))),
226-
);
227-
}
228-
229-
if !request_header.topic.is_empty()
230-
&& request_header.topic.starts_with(RETRY_GROUP_TOPIC_PREFIX)
231-
{
232-
return Some(
233-
response
234-
.set_code(ResponseCode::MessageIllegal)
235-
.set_remark(Some(format!(
236-
"batch request does not support retry group {}",
237-
request_header.topic()
238-
))),
239-
);
240-
}
241-
242217
let mut topic_config = self
243218
.inner
244219
.topic_config_manager

0 commit comments

Comments
 (0)