MCPcopy Index your code
hub / github.com/coder/coder / WithClock

Function WithClock

coderd/database/dbpurge/dbpurge.go:71–73  ·  view source on GitHub ↗

WithClock overrides the clock used by the purger. Defaults to quartz.NewReal().

(clk quartz.Clock)

Source from the content-addressed store, hash-verified

69// WithClock overrides the clock used by the purger. Defaults to
70// quartz.NewReal().
71func WithClock(clk quartz.Clock) Option {
72 return func(i *instance) { i.clk = clk }
73}
74
75// WithChatAutoArchiveBatchSize overrides how many root chats a
76// single tick will auto-archive. Defaults to

Calls

no outgoing calls