Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
rllola committed Feb 15, 2024
1 parent 71bb10b commit 8840e73
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 8840e73

Please sign in to comment.