Skip to content

Commit

Permalink
set msg attribute names to all
Browse files Browse the repository at this point in the history
  • Loading branch information
eaypek-tfh committed Sep 9, 2024
1 parent f64e8d0 commit dbac940
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions iris-mpc/src/bin/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ async fn main() -> eyre::Result<()> {
// Receive responses
let msg = results_sqs_client
.receive_message()
.message_attribute_names("All")
.max_number_of_messages(1)
.queue_url(response_queue_url.clone())
.send()
Expand Down
2 changes: 2 additions & 0 deletions iris-mpc/src/bin/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,12 @@ async fn receive_batch(
let mut handles = vec![];
let mut msg_counter = 0;

tracing::info!("Setting message attribute names to All in receive_batch");
while msg_counter < *CURRENT_BATCH_SIZE.lock().unwrap() {
let rcv_message_output = client
.receive_message()
.message_attribute_names("All")
.set_message_attribute_names(Some(vec!["All".to_string()]))
.max_number_of_messages(1)
.queue_url(queue_url)
.send()
Expand Down

0 comments on commit dbac940

Please sign in to comment.