MCPcopy
hub / github.com/google/seesaw / notify

Method notify

engine/sync.go:302–309  ·  view source on GitHub ↗

notify queues a synchronisation notification with each of the active synchronisation sessions.

(sn *SyncNote)

Source from the content-addressed store, hash-verified

300// notify queues a synchronisation notification with each of the active
301// synchronisation sessions.
302func (s *syncServer) notify(sn *SyncNote) {
303 s.sessionLock.RLock()
304 sessions := s.sessions
305 s.sessionLock.RUnlock()
306 for _, ss := range sessions {
307 ss.addNote(sn)
308 }
309}
310
311// run runs the synchronisation server, which is responsible for queueing
312// heartbeat notifications and removing expired synchronisation sessions.

Callers 3

managerMethod · 0.45
TestBasicSyncFunction · 0.45
TestSyncDesyncFunction · 0.45

Calls 1

addNoteMethod · 0.80

Tested by 2

TestBasicSyncFunction · 0.36
TestSyncDesyncFunction · 0.36