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

Method AppendStep

internal/requests/memory.go:61–69  ·  view source on GitHub ↗
(_ context.Context, step StepRow)

Source from the content-addressed store, hash-verified

59}
60
61func (m *memoryStore) AppendStep(_ context.Context, step StepRow) error {
62 m.mu.Lock()
63 defer m.mu.Unlock()
64 if _, ok := m.requests[step.RequestID]; !ok {
65 return ErrNotFound
66 }
67 m.steps[step.RequestID] = append(m.steps[step.RequestID], step)
68 return nil
69}
70
71func (m *memoryStore) GetRequest(_ context.Context, requestID string) (RequestRow, error) {
72 m.mu.RLock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected