Merge pull request #795 from yingshanghuangqiao/master

chore: fix some comments
This commit is contained in:
András Bánki-Horváth 2024-07-22 10:59:13 +02:00 committed by GitHub
commit d8361e3105
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -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{

View file

@ -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)