Skip to content

Commit

Permalink
refactor: deprecate mediation crate - include logic directly inside m…
Browse files Browse the repository at this point in the history
…ediator (#1067)

* refactor: move message processing logic within mediator pt1  - mediate-coordination

Signed-off-by: Naian <[email protected]>
  • Loading branch information
nain-F49FF806 authored Nov 22, 2023
1 parent 2b923e3 commit 37019db
Show file tree
Hide file tree
Showing 42 changed files with 76 additions and 3,473 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/mediator.pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
# uses: Swatinem/rust-cache@v2
run: cargo install sqlx-cli
- name: Setup database
run: DATABASE_URL=${MYSQL_URL} sqlx migrate run --source aries/agents/rust/mediator/mediation/migrations
run: DATABASE_URL=${MYSQL_URL} sqlx migrate run --source aries/agents/rust/mediator/migrations
- name: "Run mediator integration tests"
run: cargo run --bin mediator & sleep 5 && cargo test --verbose --package mediator -- --nocapture;
- name: "Collect docker logs on failure"
Expand Down
55 changes: 0 additions & 55 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion aries/agents/rust/mediator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
tower-http = { version = "0.4.4", features = ["catch-panic"] }
url = "2.4.1"
uuid = "1.4.1"
mediation = { path = "./mediation" }
test_utils = { path = "../../../misc/test_utils" }
base64-url = "2.0.0"

[dev-dependencies]
base64-url = "2.0.0"
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion aries/agents/rust/mediator/client-tui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ axum = "0.6.20"
cursive = { version = "0.20.0", features = ["crossterm-backend"] }
futures = "0.3.28"
log = "0.4.20"
mediation = { path = "../mediation" }
mediator = { path = ".." }
messages = { path = "../../../../messages" }
reqwest = "0.11.22"
Expand Down
6 changes: 4 additions & 2 deletions aries/agents/rust/mediator/client-tui/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
use std::collections::VecDeque;

use aries_vcx_core::wallet::base_wallet::BaseWallet;
use mediation::storage::MediatorPersistence;
use mediator::aries_agent::{client::transports::AriesReqwest, ArcAgent};
use mediator::{
aries_agent::{client::transports::AriesReqwest, ArcAgent},
persistence::MediatorPersistence,
};
use messages::msg_fields::protocols::out_of_band::invitation::Invitation as OOBInvitation;
use serde_json::{json, Value};

Expand Down
3 changes: 1 addition & 2 deletions aries/agents/rust/mediator/client-tui/src/tui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ use cursive::{
};
use futures::executor::block_on;
use log::info;
use mediation::storage::MediatorPersistence;
use mediator::aries_agent::Agent;
use mediator::{aries_agent::Agent, persistence::MediatorPersistence};
use messages::msg_fields::protocols::out_of_band::invitation::Invitation as OOBInvitation;

pub async fn init_tui<T: BaseWallet + 'static, P: MediatorPersistence>(agent: Agent<T, P>) {
Expand Down
130 changes: 0 additions & 130 deletions aries/agents/rust/mediator/mediation/.github/workflows/rust-basic.yml

This file was deleted.

5 changes: 0 additions & 5 deletions aries/agents/rust/mediator/mediation/.gitignore

This file was deleted.

Loading

0 comments on commit 37019db

Please sign in to comment.