mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
chore: fix some comments
Signed-off-by: yingshanghuangqiao <yingshanghuangqiao@foxmail.com>
This commit is contained in:
parent
70b0af1452
commit
57ebc3ff16
2 changed files with 3 additions and 3 deletions
|
|
@ -287,7 +287,7 @@ func convertBatchRow(row sqlc.SweepBatch) *dbBatch {
|
|||
return &batch
|
||||
}
|
||||
|
||||
// BatchToUpsertArgs converts a Batch struct to the arguments needed to insert
|
||||
// batchToInsertArgs converts a Batch struct to the arguments needed to insert
|
||||
// it into the database.
|
||||
func batchToInsertArgs(batch dbBatch) sqlc.InsertBatchParams {
|
||||
args := sqlc.InsertBatchParams{
|
||||
|
|
@ -315,7 +315,7 @@ func batchToInsertArgs(batch dbBatch) sqlc.InsertBatchParams {
|
|||
return args
|
||||
}
|
||||
|
||||
// BatchToUpsertArgs converts a Batch struct to the arguments needed to insert
|
||||
// batchToUpdateArgs converts a Batch struct to the arguments needed to insert
|
||||
// it into the database.
|
||||
func batchToUpdateArgs(batch dbBatch) sqlc.UpdateBatchParams {
|
||||
args := sqlc.UpdateBatchParams{
|
||||
|
|
|
|||
|
|
@ -564,7 +564,7 @@ func (b *Batcher) spinUpBatch(ctx context.Context) (*batch, error) {
|
|||
return batch, nil
|
||||
}
|
||||
|
||||
// spinUpBatchDB spins up a batch that already existed in storage, then
|
||||
// spinUpBatchFromDB spins up a batch that already existed in storage, then
|
||||
// returns it.
|
||||
func (b *Batcher) spinUpBatchFromDB(ctx context.Context, batch *batch) error {
|
||||
dbSweeps, err := b.store.FetchBatchSweeps(ctx, batch.id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue