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

Method OnPersisted

pkg/queue/task.go:287–292  ·  view source on GitHub ↗
(task *ent.Task)

Source from the content-addressed store, hash-verified

285}
286
287func (t *DBTask) OnPersisted(task *ent.Task) {
288 t.mu.Lock()
289 defer t.mu.Unlock()
290
291 t.Task = task
292}
293
294func (t *DBTask) OnError(err error, d time.Duration) {
295 t.mu.Lock()

Callers

nothing calls this directly

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected