MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / CorrelationID

Method CorrelationID

pkg/queue/task.go:273–281  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

271}
272
273func (t *DBTask) CorrelationID() uuid.UUID {
274 t.mu.Lock()
275 defer t.mu.Unlock()
276
277 if t.Task != nil {
278 return t.Task.CorrelationID
279 }
280 return uuid.Nil
281}
282
283func (t *DBTask) ShouldPersist() bool {
284 return true

Callers

nothing calls this directly

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected