Skip to content

Commit

Permalink
Merge pull request #8 from G8XSU/09-26-minor-fixes
Browse files Browse the repository at this point in the history
Add suggestions/error-context clap features.
  • Loading branch information
tnull authored Oct 11, 2024
2 parents 1d702ed + 26a4ca3 commit 2c881d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ edition = "2021"

[dependencies]
client = { path = "../client" }
clap = { version = "4.0.5", default-features = false, features = ["derive", "std"] }
clap = { version = "4.0.5", default-features = false, features = ["derive", "std", "error-context", "suggestions", "help"] }
tokio = { version = "1.38.0", default-features = false, features = ["rt-multi-thread", "macros"] }
prost = { version = "0.11.6", default-features = false}
3 changes: 2 additions & 1 deletion server/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ impl Service<Request<Incoming>> for NodeService {

fn call(&self, req: Request<Incoming>) -> Self::Future {
let node = Arc::clone(&self.node);
match req.uri().path() {
// Exclude '/' from path pattern matching.
match &req.uri().path()[1..] {
ONCHAIN_RECEIVE_PATH => {
Box::pin(handle_request(node, req, handle_onchain_receive_request))
},
Expand Down

0 comments on commit 2c881d9

Please sign in to comment.