MCPcopy Index your code
hub / github.com/devspace-sh/devspace / getEvents

Method getEvents

pkg/devspace/sync/upstream.go:187–199  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

185}
186
187func (u *upstream) getEvents() []notify.EventInfo {
188 var eventsRef []notify.EventInfo
189 u.eventBufferMutex.Lock()
190 defer u.eventBufferMutex.Unlock()
191
192 // exchange buffer if we got events
193 if len(u.eventBuffer) > 0 {
194 eventsRef = u.eventBuffer
195 u.eventBuffer = make([]notify.EventInfo, 0, 64)
196 }
197
198 return eventsRef
199}
200
201func (u *upstream) mainLoop() error {
202 doneChan := make(chan struct{})

Callers 1

mainLoopMethod · 0.95

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected