MCPcopy Create free account
hub / github.com/comerc/yandex / GetBatch

Method GetBatch

CHALLENGE/_viktor.go:57–70  ·  view source on GitHub ↗
(ctx context.Context, ids []int64)

Source from the content-addressed store, hash-verified

55}
56
57func (e *Example) GetBatch(ctx context.Context, ids []int64) ([]*Item, error) {
58 // enable shadow read from new storage
59 // ...
60
61 // enable priority read from new storage
62 // ...
63
64 items, err := e.storeV1.GetBatch(ctx, ids)
65 if err != nil {
66 return nil, fmt.Errorf("failed to get items: %w", err)
67 }
68
69 return items, nil
70}

Callers

nothing calls this directly

Calls 1

GetBatchMethod · 0.65

Tested by

no test coverage detected