MCPcopy Create free account
hub / github.com/InferCore/InferCore / CreateRequest

Method CreateRequest

internal/requests/memory.go:24–33  ·  view source on GitHub ↗
(_ context.Context, row RequestRow)

Source from the content-addressed store, hash-verified

22}
23
24func (m *memoryStore) CreateRequest(_ context.Context, row RequestRow) error {
25 m.mu.Lock()
26 defer m.mu.Unlock()
27 if _, ok := m.requests[row.RequestID]; ok {
28 return errors.New("request already exists")
29 }
30 m.requests[row.RequestID] = row
31 m.steps[row.RequestID] = nil
32 return nil
33}
34
35func (m *memoryStore) UpdateRequest(_ context.Context, requestID string, patch RequestPatch) error {
36 m.mu.Lock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected