MCPcopy Create free account
hub / github.com/PostHog/duckgres / cloneWorkerAssignment

Function cloneWorkerAssignment

controlplane/worker_state.go:228–235  ·  view source on GitHub ↗
(assignment *WorkerAssignment)

Source from the content-addressed store, hash-verified

226}
227
228func cloneWorkerAssignment(assignment *WorkerAssignment) *WorkerAssignment {
229 if assignment == nil {
230 return nil
231 }
232 cloned := *assignment
233 cloned.Profile = cloneWorkerProfile(assignment.Profile)
234 return &cloned
235}
236
237func cloneWorkerProfile(profile *WorkerProfile) *WorkerProfile {
238 if profile == nil {

Callers 3

TransitionMethod · 0.85
resolveWorkerAssignmentFunction · 0.85
cloneSharedWorkerStateFunction · 0.85

Calls 1

cloneWorkerProfileFunction · 0.85

Tested by

no test coverage detected