MCPcopy
hub / github.com/mudler/LocalAI / Delete

Method Delete

core/services/syncstate/syncstate_test.go:66–72  ·  view source on GitHub ↗
(_ context.Context, k string)

Source from the content-addressed store, hash-verified

64}
65
66func (s *fakeStore) Delete(_ context.Context, k string) error {
67 s.mu.Lock()
68 defer s.mu.Unlock()
69 s.deleteCalls++
70 delete(s.data, k)
71 return nil
72}
73
74// add simulates a peer replica writing to the shared DB out-of-band (e.g. while
75// this replica was partitioned), so a re-hydrate can be observed to pick it up.

Callers

nothing calls this directly

Calls 3

deleteFunction · 0.85
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected