MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / enqueue

Method enqueue

xenomint/pool.go:70–76  ·  view source on GitHub ↗
(sp uint64, q *QueryTracker)

Source from the content-addressed store, hash-verified

68}
69
70func (p *pool) enqueue(sp uint64, q *QueryTracker) {
71 var pos = len(p.queries)
72 p.queries = append(p.queries, q)
73 p.index[sp] = pos
74 atomic.StoreInt32(&p.trackerCount, int32(len(p.queries)))
75 return
76}
77
78func (p *pool) enqueueRead(q *QueryTracker) {
79 // NOTE(leventeliu): this overwrites any request with a same hash

Callers 3

writeMethod · 0.80
replayMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected