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

Method BufferedUpdatesCount

coderd/notifications/manager.go:233–235  ·  view source on GitHub ↗

BufferedUpdatesCount returns the number of buffered updates which are currently waiting to be flushed to the store. The returned values are for success & failure, respectively.

()

Source from the content-addressed store, hash-verified

231// BufferedUpdatesCount returns the number of buffered updates which are currently waiting to be flushed to the store.
232// The returned values are for success & failure, respectively.
233func (m *Manager) BufferedUpdatesCount() (success int, failure int) {
234 return len(m.success), len(m.failure)
235}
236
237// syncUpdates updates messages in the store based on the given successful and failed message dispatch results.
238func (m *Manager) syncUpdates(ctx context.Context) {

Callers 1

TestBufferedUpdatesFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestBufferedUpdatesFunction · 0.76