MCPcopy Create free account
hub / github.com/ethereum/node-crawler / dropDaemon

Function dropDaemon

cmd/crawler/api.go:148–159  ·  view source on GitHub ↗
(db *sql.DB, dropTimeout time.Duration)

Source from the content-addressed store, hash-verified

146}
147
148func dropDaemon(db *sql.DB, dropTimeout time.Duration) {
149 ticker := time.NewTicker(10 * time.Minute)
150 defer ticker.Stop()
151
152 for {
153 <-ticker.C
154 err := apidb.DropOldNodes(db, dropTimeout)
155 if err != nil {
156 panic(err)
157 }
158 }
159}

Callers 1

startAPIFunction · 0.85

Calls 1

DropOldNodesFunction · 0.92

Tested by

no test coverage detected