-
Notifications
You must be signed in to change notification settings - Fork 151
[ISSUE #3315]🚀Implement GetNamesrvConfigCommand for name server tool💫 #3333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -20,11 +20,12 @@ rocketmq-error = { workspace = true } | |||
|
||||
serde.workspace = true | ||||
serde_json.workspace = true | ||||
tokio = {workspace = true} | ||||
tokio = { workspace = true } | ||||
|
||||
cheetah-string = { workspace = true } | ||||
clap = { version = "4.5.38", features = ["derive"] } | ||||
tabled = { version = & 9E7A quot;0.19.0", features = ["derive"] } | ||||
futures = "0.3.31" | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainVerify the necessity of the futures dependency. The 🏁 Script executed: #!/bin/bash
# Description: Check if futures crate is actually used in the tools module
# Expected: If futures is not used, it should be removed to avoid unnecessary dependencies
echo "Searching for futures usage in rocketmq-tools..."
rg -A 3 -B 3 "futures::" rocketmq-tools/
echo "---"
echo "Searching for use futures statements..."
rg -A 1 "use futures" rocketmq-tools/
echo "---"
echo "Checking if futures is used in any way..."
rg "futures" rocketmq-tools/ --type rust Length of output: 440 Remove unused I searched the entire • File: rocketmq-tools/Cargo.toml (line 28) - futures = "0.3.31" 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
|
||||
|
||||
[[bin]] | ||||
name = "rocketmq-admin-cli-rust" | ||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace
expect()
with proper error handling to prevent potential panic.The
expect()
call on line 1798 can cause the application to panic if JSON parsing fails. This should be handled gracefully.Apply this diff to improve error handling:
📝 Committable suggestion
🤖 Prompt for AI Agents