Skip to content

Commit 8f08277

Browse files
committed
fix(slimrpc): restore Binding::Slimrpc protocol match arm and config parse entry
Signed-off-by: Sam Betts <1769706+Tehsmash@users.noreply.github.com>
1 parent 89cc44c commit 8f08277

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

a2acli/src/config.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ fn parse_binding_str(s: &str) -> Option<Binding> {
138138
match s {
139139
"jsonrpc" => Some(Binding::Jsonrpc),
140140
"http-json" => Some(Binding::HttpJson),
141+
#[cfg(feature = "slimrpc")]
142+
"slimrpc" => Some(Binding::Slimrpc),
141143
_ => None,
142144
}
143145
}

a2acli/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,8 @@ impl Binding {
305305
match self {
306306
Binding::Jsonrpc => TRANSPORT_PROTOCOL_JSONRPC,
307307
Binding::HttpJson => TRANSPORT_PROTOCOL_HTTP_JSON,
308+
#[cfg(feature = "slimrpc")]
309+
Binding::Slimrpc => a2a::TRANSPORT_PROTOCOL_SLIMRPC,
308310
}
309311
}
310312
}

0 commit comments

Comments
 (0)