MCPcopy
hub / github.com/dgraph-io/dgraph / close

Method close

worker/import.go:114–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112}
113
114func (ps *pubSub) close() {
115 ps.Lock()
116 defer ps.Unlock()
117 for _, ch := range ps.subscribers {
118 close(ch)
119 }
120 ps.subscribers = nil
121}
122
123func (ps *pubSub) handlePublisher(ctx context.Context, stream api.Dgraph_StreamExtSnapshotServer) error {
124 for {

Callers 1

streamInGroupFunction · 0.95

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected