MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / createCollections

Method createCollections

internal/search/reindex.go:177–187  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

175}
176
177func (r *ReindexService) createCollections(ctx context.Context) error {
178 r.updateProgress("create_collections", 0, 0)
179 logrus.Info("Creating collections")
180
181 if err := r.client.EnsureCollectionsExist(ctx); err != nil {
182 return err
183 }
184
185 logrus.Info("All collections created successfully")
186 return nil
187}
188
189func (r *ReindexService) indexLedgers(ctx context.Context) error {
190 r.updateProgress("indexing_ledgers", 0, 0)

Callers 1

StartReindexMethod · 0.95

Calls 3

updateProgressMethod · 0.95
InfoMethod · 0.45

Tested by

no test coverage detected