MCPcopy Create free account
hub / github.com/encodeous/nylon / Unsubscribe

Method Unsubscribe

e2e/logging.go:145–152  ·  view source on GitHub ↗
(sub *LogSubscription)

Source from the content-addressed store, hash-verified

143}
144
145func (m *LogManager) Unsubscribe(sub *LogSubscription) {
146 m.mu.Lock()
147 defer m.mu.Unlock()
148 key := sourceKey{sub.Node, sub.Source}
149 if current, ok := m.subscribers[key]; ok && current == sub {
150 delete(m.subscribers, key)
151 }
152}
153
154func (m *LogManager) Observe(fn func(LogEvent)) int {
155 m.mu.Lock()

Callers 1

waitForMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected