MCPcopy
hub / github.com/tuna/tunasync / DeleteWorker

Method DeleteWorker

manager/db.go:153–159  ·  view source on GitHub ↗
(workerID string)

Source from the content-addressed store, hash-verified

151}
152
153func (b *kvDBAdapter) DeleteWorker(workerID string) error {
154 v, _ := b.db.Get(_workerBucketKey, workerID)
155 if v == nil {
156 return fmt.Errorf("invalid workerID %s", workerID)
157 }
158 return b.db.Delete(_workerBucketKey, workerID)
159}
160
161func (b *kvDBAdapter) CreateWorker(w WorkerStatus) (WorkerStatus, error) {
162 v, err := json.Marshal(w)

Callers

nothing calls this directly

Calls 3

ErrorfMethod · 0.80
GetMethod · 0.65
DeleteMethod · 0.65

Tested by

no test coverage detected