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

Method GetProgressPtr

internal/search/reindex.go:145–150  ·  view source on GitHub ↗

GetProgressPtr returns a pointer to the current progress.

()

Source from the content-addressed store, hash-verified

143
144// GetProgressPtr returns a pointer to the current progress.
145func (r *ReindexService) GetProgressPtr() *ReindexProgress {
146 r.mu.RLock()
147 defer r.mu.RUnlock()
148 progress := *r.progress
149 return &progress
150}
151
152func (r *ReindexService) failWithError(err error, phase string) (*ReindexProgress, error) {
153 r.mu.Lock()

Callers 2

StartReindexMethod · 0.95
failWithErrorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected