MCPcopy
hub / github.com/dragonflyoss/dragonfly / Serve

Method Serve

pkg/rpc/dfdaemon/client/client_v2.go:77–89  ·  view source on GitHub ↗

Serve starts the pool.

()

Source from the content-addressed store, hash-verified

75
76// Serve starts the pool.
77func (p *pool) Serve() {
78 ticker := time.NewTicker(gcInterval)
79 defer ticker.Stop()
80
81 for {
82 select {
83 case <-ticker.C:
84 p.runGC()
85 case <-p.done:
86 return
87 }
88 }
89}
90
91// Stop stops the pool.
92func (p *pool) Stop() {

Callers

nothing calls this directly

Calls 2

runGCMethod · 0.95
StopMethod · 0.65

Tested by

no test coverage detected