chore: fix some comments

Signed-off-by: yingshanghuangqiao <yingshanghuangqiao@foxmail.com>
pull/795/head
yingshanghuangqiao 2 months ago
parent 70b0af1452
commit 57ebc3ff16

@ -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…
Cancel
Save