MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / InitBatchUpdater

Function InitBatchUpdater

model/utils.go:32–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30}
31
32func InitBatchUpdater() {
33 gopool.Go(func() {
34 for {
35 time.Sleep(time.Duration(common.BatchUpdateInterval) * time.Second)
36 batchUpdate()
37 }
38 })
39}
40
41func addNewRecord(type_ int, id int, value int) {
42 batchUpdateLocks[type_].Lock()

Callers 1

mainFunction · 0.92

Calls 1

batchUpdateFunction · 0.85

Tested by

no test coverage detected