Skip to content

Commit d8361e3

Browse files
authored
Merge pull request #795 from yingshanghuangqiao/master
chore: fix some comments
2 parents 70b0af1 + 57ebc3f commit d8361e3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sweepbatcher/store.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ func convertBatchRow(row sqlc.SweepBatch) *dbBatch {
287287
return &batch
288288
}
289289

290-
// BatchToUpsertArgs converts a Batch struct to the arguments needed to insert
290+
// batchToInsertArgs converts a Batch struct to the arguments needed to insert
291291
// it into the database.
292292
func batchToInsertArgs(batch dbBatch) sqlc.InsertBatchParams {
293293
args := sqlc.InsertBatchParams{
@@ -315,7 +315,7 @@ func batchToInsertArgs(batch dbBatch) sqlc.InsertBatchParams {
315315
return args
316316
}
317317

318-
// BatchToUpsertArgs converts a Batch struct to the arguments needed to insert
318+
// batchToUpdateArgs converts a Batch struct to the arguments needed to insert
319319
// it into the database.
320320
func batchToUpdateArgs(batch dbBatch) sqlc.UpdateBatchParams {
321321
args := sqlc.UpdateBatchParams{

sweepbatcher/sweep_batcher.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ func (b *Batcher) spinUpBatch(ctx context.Context) (*batch, error) {
564564
return batch, nil
565565
}
566566

567-
// spinUpBatchDB spins up a batch that already existed in storage, then
567+
// spinUpBatchFromDB spins up a batch that already existed in storage, then
568568
// returns it.
569569
func (b *Batcher) spinUpBatchFromDB(ctx context.Context, batch *batch) error {
570570
dbSweeps, err := b.store.FetchBatchSweeps(ctx, batch.id)

0 commit comments

Comments
 (0)