MCPcopy Create free account
hub / github.com/Shopify/goose / Run

Method Run

lockmap/map.go:105–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103}
104
105func (m *lockMap) Run() error {
106 ticker := time.NewTicker(m.sweepInterval)
107 for {
108 select {
109 case <-m.tomb.Dying():
110 ticker.Stop()
111 m.shutdown()
112 return m.tomb.Err()
113 case <-ticker.C:
114 m.sweep()
115 }
116 }
117}
118
119func (m *lockMap) shutdown() {
120 m.l.Lock()

Callers

nothing calls this directly

Calls 2

shutdownMethod · 0.95
sweepMethod · 0.95

Tested by

no test coverage detected