MCPcopy Create free account
hub / github.com/cloudwego/eino-examples / Set

Method Set

compose/batch/batch/store.go:79–90  ·  view source on GitHub ↗

Set stores checkpoint data for a batch index. Implements compose.CheckPointStore interface.

(_ context.Context, checkPointID string, checkPoint []byte)

Source from the content-addressed store, hash-verified

77// Set stores checkpoint data for a batch index.
78// Implements compose.CheckPointStore interface.
79func (m *batchBridgeStore) Set(_ context.Context, checkPointID string, checkPoint []byte) error {
80 index, err := parseBatchIndex(checkPointID)
81 if err != nil {
82 return err
83 }
84
85 m.mu.Lock()
86 defer m.mu.Unlock()
87
88 m.data[index] = checkPoint
89 return nil
90}

Callers

nothing calls this directly

Calls 1

parseBatchIndexFunction · 0.85

Tested by

no test coverage detected