Skip to content

Commit

Permalink
(BIDS-2369) remove unnecessary coalesce
Browse files Browse the repository at this point in the history
  • Loading branch information
LuccaBitfly committed Oct 4, 2023
1 parent b6210a0 commit 93df5de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -2390,7 +2390,7 @@ func GetTotalAmountWithdrawn() (sum uint64, count uint64, err error) {
WITH today AS (
SELECT
COALESCE(SUM(w.amount), 0) as sum,
COALESCE(COUNT(*), 0) as count
COUNT(*) as count
FROM blocks_withdrawals w
INNER JOIN blocks b ON b.blockroot = w.block_root AND b.status = '1'
WHERE w.block_slot >= $1
Expand Down

0 comments on commit 93df5de

Please sign in to comment.