MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / broadcast

Method broadcast

apps/server/internal/watcher/watcher.go:315–324  ·  view source on GitHub ↗
(change vault.ChangeEvent)

Source from the content-addressed store, hash-verified

313}
314
315func (w *Watcher) broadcast(change vault.ChangeEvent) {
316 w.mu.Lock()
317 for ch := range w.subs {
318 select {
319 case ch <- change:
320 default:
321 }
322 }
323 w.mu.Unlock()
324}

Callers 2

handleMethod · 0.95
broadcastFolderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected