Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
287
func
(t *DBTask) OnPersisted(task *ent.Task) {
288
t.mu.Lock()
289
defer
t.mu.Unlock()
290
291
t.Task = task
292
}
293
294
func
(t *DBTask) OnError(err error, d time.Duration) {
295
t.mu.Lock()
Callers
nothing calls this directly
Calls
2
Lock
Method · 0.65
Unlock
Method · 0.65
Tested by
no test coverage detected