MCPcopy Create free account
hub / github.com/coder/coder / clock

Method clock

enterprise/coderd/x/chatd/chatd.go:135–140  ·  view source on GitHub ↗

clock returns the quartz.Clock to use. Defaults to a real clock when not set.

()

Source from the content-addressed store, hash-verified

133// clock returns the quartz.Clock to use. Defaults to a real clock
134// when not set.
135func (c MultiReplicaSubscribeConfig) clock() quartz.Clock {
136 if c.Clock != nil {
137 return c.Clock
138 }
139 return quartz.NewReal()
140}
141
142// NewMultiReplicaSubscribeFn returns a SubscribeFn that manages
143// relay connections to remote replicas and returns relay

Callers 2

dialMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected