diff --git a/sweepbatcher/store.go b/sweepbatcher/store.go index 5d4a0c5..f429b98 100644 --- a/sweepbatcher/store.go +++ b/sweepbatcher/store.go @@ -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{ diff --git a/sweepbatcher/sweep_batcher.go b/sweepbatcher/sweep_batcher.go index 8033f54..5029cf7 100644 --- a/sweepbatcher/sweep_batcher.go +++ b/sweepbatcher/sweep_batcher.go @@ -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)