Skip to content

Commit

Permalink
upgrade protocol refactor: use batching (#423)
Browse files Browse the repository at this point in the history
* refactor

* refactor

* batching

* no tls

* Revert "no tls"

This reverts commit 78fa47b.

* pr comments and refactors
  • Loading branch information
carlomazzaferro authored Sep 23, 2024
1 parent dc10eb0 commit 8731993
Show file tree
Hide file tree
Showing 6 changed files with 373 additions and 233 deletions.
14 changes: 0 additions & 14 deletions iris-mpc-upgrade/src/bin/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,3 @@ services:
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
db-ui:
depends_on:
- old-db-shares-1
- old-db-shares-2
- old-db-masks-1
- new-db-1
- new-db-2
- new-db-3
image: dpage/pgadmin4
ports:
- "15432:80"
environment:
PGADMIN_DEFAULT_EMAIL: "postgres@postgres.postgres"
PGADMIN_DEFAULT_PASSWORD: "postgres"
18 changes: 12 additions & 6 deletions iris-mpc-upgrade/src/bin/seed_v1_dbs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ struct Args {
#[clap(long)]
fill_to: u64,

#[clap(long)]
create: bool,

#[clap(long)]
migrate: bool,

#[clap(long)]
side: String,
}
Expand Down Expand Up @@ -42,25 +48,25 @@ async fn main() -> eyre::Result<()> {
"{}/{}",
args.shares_db_urls[0], participant_one_shares_db_name
),
migrate: false,
create: false,
migrate: args.migrate,
create: args.create,
};
let shares_db_config1 = DbConfig {
url: format!(
"{}/{}",
args.shares_db_urls[1], participant_two_shares_db_name
),
migrate: false,
create: false,
migrate: args.migrate,
create: args.create,
};
let masks_db_config = DbConfig {
url: format!(
"{}/{}",
args.masks_db_url.clone(),
participant_one_masks_db_name
),
migrate: false,
create: false,
migrate: args.migrate,
create: args.create,
};

let shares_db0 = Db::new(&shares_db_config0).await?;
Expand Down
Loading

0 comments on commit 8731993

Please sign in to comment.