MCPcopy Create free account
hub / github.com/QuantumNous/new-api / SyncTaskTopic

Function SyncTaskTopic

model/system_sync_task.go:34–36  ·  view source on GitHub ↗

SyncTaskTopic returns the topic of a sync task type.

(taskType string)

Source from the content-addressed store, hash-verified

32
33// SyncTaskTopic returns the topic of a sync task type.
34func SyncTaskTopic(taskType string) (string, bool) {
35 return strings.CutPrefix(taskType, syncTaskTypePrefix)
36}
37
38// SyncTaskPayload names the node whose write added a sync task.
39type SyncTaskPayload struct {

Callers 3

finishAppliedSyncTasksFunction · 0.92
GetLatestSyncRevisionsFunction · 0.85
PendingSyncTaskTypesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected