From 8840e733fe86111baa75790e7b2c11413a4bf7b9 Mon Sep 17 00:00:00 2001 From: rllola Date: Thu, 15 Feb 2024 14:30:39 +0100 Subject: [PATCH] rustfmt --- src/database.rs | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/database.rs b/src/database.rs index db8ddf1..4ffc844 100644 --- a/src/database.rs +++ b/src/database.rs @@ -804,13 +804,14 @@ impl Database { // now store delegators // if there are indeed delegator addresses in the list. if !tx_data.delegations.is_empty() { - let mut query_builder: QueryBuilder<_> = QueryBuilder::new(format!( - "INSERT INTO {}.delegations( + let mut query_builder: QueryBuilder<_> = + QueryBuilder::new(format!( + "INSERT INTO {}.delegations( vote_proposal_id, delegator_id )", - network - )); + network + )); // Insert each key which would have an update_id associated to it, // allowing querying keys per updates. @@ -870,13 +871,14 @@ impl Database { if !tx.public_keys.is_empty() { trace!("Storing {} public_keys", tx.public_keys.len()); - let mut query_builder: QueryBuilder<_> = QueryBuilder::new(format!( - "INSERT INTO {}.account_public_keys( + let mut query_builder: QueryBuilder<_> = + QueryBuilder::new(format!( + "INSERT INTO {}.account_public_keys( update_id, public_key )", - network - )); + network + )); // Insert each key which would have an update_id associated to it, // allowing querying keys per updates.