MCPcopy
hub / github.com/aceld/zinx / daemon

Method daemon

zutils/witer.go:62–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 return w
61}
62func (w *Writer) daemon() {
63 for range time.NewTicker(time.Second * 5).C {
64 w.flush()
65 }
66}
67
68// SetMaxAge 最大保留天数
69func (w *Writer) SetMaxAge(ma int) {

Callers 1

NewFunction · 0.95

Calls 1

flushMethod · 0.95

Tested by

no test coverage detected