Skip to content

Commit 4f79ec3

Browse files
authored
chore: make format golines (#730)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 5998b8d commit 4f79ec3

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

database/utxo.go

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ func (d *Database) AddUtxos(
9696
}
9797
for _, utxoSlot := range utxos {
9898
// Add UTxO to blob DB
99-
key := UtxoBlobKey(utxoSlot.Utxo.Id.Id().Bytes(), utxoSlot.Utxo.Id.Index())
99+
key := UtxoBlobKey(
100+
utxoSlot.Utxo.Id.Id().Bytes(),
101+
utxoSlot.Utxo.Id.Index(),
102+
)
100103
err := txn.Blob().Set(key, utxoSlot.Utxo.Output.Cbor())
101104
if err != nil {
102105
return err
@@ -176,7 +179,11 @@ func (d *Database) UtxosDeleteConsumed(
176179
defer txn.Commit() //nolint:errcheck
177180
}
178181
// Get UTxOs that are marked as deleted and older than our slot window
179-
utxos, err := d.metadata.GetUtxosDeletedBeforeSlot(slot, limit, txn.Metadata())
182+
utxos, err := d.metadata.GetUtxosDeletedBeforeSlot(
183+
slot,
184+
limit,
185+
txn.Metadata(),
186+
)
180187
if err != nil {
181188
return 0, errors.New("failed to query consumed UTxOs during cleanup")
182189
}

ledger/chainsync.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,9 @@ func (ls *LedgerState) blockfetchRequestRangeStart(
451451
case <-time.After(500 * time.Millisecond):
452452
}
453453
// Clear blockfetch busy flag on timeout
454-
if time.Since(ls.chainsyncBlockfetchBusyTime) > blockfetchBusyTimeout {
454+
if time.Since(
455+
ls.chainsyncBlockfetchBusyTime,
456+
) > blockfetchBusyTimeout {
455457
ls.blockfetchRequestRangeCleanup(true)
456458
ls.config.Logger.Warn(
457459
fmt.Sprintf(

ledger/state.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,12 @@ func (ls *LedgerState) ledgerProcessBlocks() {
573573
}
574574
}
575575
// Process block
576-
delta, err = ls.ledgerProcessBlock(txn, tmpPoint, next.block, shouldValidate)
576+
delta, err = ls.ledgerProcessBlock(
577+
txn,
578+
tmpPoint,
579+
next.block,
580+
shouldValidate,
581+
)
577582
if err != nil {
578583
return err
579584
}

0 commit comments

Comments
 (0)