blob: dec8606f9ff0cbef9add592d66fb1d077118d985 (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package commitquery
import (
"sync"
commitgraphread "codeberg.org/lindenii/furgit/format/commitgraph/read"
objectstore "codeberg.org/lindenii/furgit/object/store"
)
// Queries provides commit-domain queries over one object store
// and optional commit-graph reader.
//
// Queries reuses internal mutable query workers across operations.
//
// Labels: MT-Safe.
type Queries struct {
store objectstore.ReadingStore
graph *commitgraphread.Reader
mu sync.Mutex
idle []*query
maxIdle int
}
|