MCPcopy Index your code
hub / github.com/rilldata/rill / resetEvents

Method resetEvents

runtime/catalog_cache.go:531–534  ·  view source on GitHub ↗

clearEvents clears all buffered events. It should be called after consuming c.events. It initializes a new event buffer on each call, so it is safe to use a copy of c.events after calling this method.

()

Source from the content-addressed store, hash-verified

529// It should be called after consuming c.events.
530// It initializes a new event buffer on each call, so it is safe to use a copy of c.events after calling this method.
531func (c *catalogCache) resetEvents() {
532 c.hasEvents = false
533 c.events = make(map[string]catalogEvent)
534}
535
536// nameStr returns a normalized string representation of a resource name.
537func nameStr(r *runtimev1.ResourceName) string {

Callers 1

RunMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected