rcp/server: generalize RequestHandler so we can create multiple instances of it

This commit is contained in:
skoupidi
2024-12-05 16:22:43 +02:00
parent 441a029f58
commit bc22307e8b
15 changed files with 27 additions and 27 deletions

View File

@@ -55,7 +55,7 @@ impl RpcSrv {
}
#[async_trait]
impl RequestHandler for RpcSrv {
impl RequestHandler<()> for RpcSrv {
async fn handle_request(&self, req: JsonRequest) -> JsonResult {
assert!(req.params.is_array());