Remove unecessary slice indexing
Eduard S eduard@iden3.io
Fri, 19 Feb 2021 10:54:31 +0100
1 files changed,
10 insertions(+),
10 deletions(-)
jump to
M
db/historydb/historydb.go
→
db/historydb/historydb.go
@@ -61,7 +61,7 @@ eth_block_num,
timestamp, hash ) VALUES %s;`, - blocks[:], + blocks, )) }@@ -273,7 +273,7 @@ // TODO: check the coordinator info
return tracerr.Wrap(db.BulkInsert( d, "INSERT INTO bid (slot_num, bid_value, eth_block_num, bidder_addr) VALUES %s;", - bids[:], + bids, )) }@@ -324,7 +324,7 @@ }
return tracerr.Wrap(db.BulkInsert( d, "INSERT INTO coordinator (bidder_addr, forger_addr, eth_block_num, url) VALUES %s;", - coordinators[:], + coordinators, )) }@@ -340,7 +340,7 @@ return tracerr.Wrap(db.BulkInsert(
d, "INSERT INTO exit_tree (batch_num, account_idx, merkle_proof, balance, "+ "instant_withdrawn, delayed_withdraw_request, delayed_withdrawn) VALUES %s;", - exitTree[:], + exitTree, )) }@@ -443,7 +443,7 @@ name,
symbol, decimals ) VALUES %s;`, - tokens[:], + tokens, )) }@@ -514,7 +514,7 @@ batch_num,
bjj, eth_addr ) VALUES %s;`, - accounts[:], + accounts, )) }@@ -646,7 +646,7 @@ deposit_amount_f,
fee, nonce ) VALUES %s;`, - txs[:], + txs, )) }@@ -781,7 +781,7 @@ num_bucket,
block_stamp, withdrawals ) VALUES %s;`, - bucketUpdates[:], + bucketUpdates, )) }@@ -813,7 +813,7 @@ eth_block_num,
eth_addr, value_usd ) VALUES %s;`, - tokenExchanges[:], + tokenExchanges, )) }@@ -841,7 +841,7 @@ to_addr,
token_addr, amount ) VALUES %s;`, - escapeHatchWithdrawals[:], + escapeHatchWithdrawals, )) }