mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-08 22:28:12 -05:00
rcp/server: generalize RequestHandler so we can create multiple instances of it
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user