Skip to content

Commit

Permalink
improve the message container loading logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Hermann-Core committed Nov 22, 2024
1 parent 1d44c98 commit be8c08d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/web-plugins/didcomm-messaging/src/web/dispatcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ mod tests {
use super::*;
use axum::Router;
use hyper::{Body, Method, Request};
use message_api::MessagePlugin;
use message_api::{MessageHandler, MessagePlugin};
use serde_json::{json, Value};
use shared::{
repository::tests::MockConnectionRepository, state::AppStateRepository,
Expand Down Expand Up @@ -109,17 +109,18 @@ mod tests {
(app, state)
}

#[derive(Debug)]
struct MockKeylistUpdateHandler;

#[async_trait::async_trait]
impl MessagePlugin for MockKeylistUpdateHandler {
impl MessageHandler for MockKeylistUpdateHandler {
async fn handle(
&self,
state: Arc<AppState>,
message: Message,
) -> Result<Option<Message>, Response> {
handler::stateful::process_plain_keylist_update_message(state, message).await.map_err(
|e| e.into_response(),)
|e| e.into_response())
}
}

Expand Down

0 comments on commit be8c08d

Please sign in to comment.