MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / clearAllBadges

Function clearAllBadges

pkg/wcore/badge.go:129–136  ·  view source on GitHub ↗

clearAllBadges removes all badges from the transient store.

()

Source from the content-addressed store, hash-verified

127
128// clearAllBadges removes all badges from the transient store.
129func clearAllBadges() {
130 globalBadgeStore.lock.Lock()
131 defer globalBadgeStore.lock.Unlock()
132
133 count := len(globalBadgeStore.transient)
134 globalBadgeStore.transient = make(map[string]baseds.Badge)
135 log.Printf("badge store: cleared all %d badges\n", count)
136}
137
138// GetAllBadges returns a snapshot of all currently active badges.
139func GetAllBadges() []baseds.BadgeEvent {

Callers 1

handleBadgeEventFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected