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