InserterWithClock sets the quartz clock to use for the inserter.
(clock quartz.Clock)
| 37 | |
| 38 | // InserterWithClock sets the quartz clock to use for the inserter. |
| 39 | func InserterWithClock(clock quartz.Clock) InserterOption { |
| 40 | return func(c *dbInserter) { |
| 41 | c.clock = clock |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | // InsertDiscreteUsageEvent implements agplusage.Inserter. |
| 46 | func (i *dbInserter) InsertDiscreteUsageEvent(ctx context.Context, tx database.Store, event usagetypes.DiscreteEvent) error { |
no outgoing calls