MCPcopy
hub / github.com/grafana/dskit / timeToUnixSecons

Function timeToUnixSecons

ring/model.go:50–55  ·  view source on GitHub ↗
(t time.Time)

Source from the content-addressed store, hash-verified

48}
49
50func timeToUnixSecons(t time.Time) int64 {
51 if t.IsZero() {
52 return 0
53 }
54 return t.Unix()
55}
56
57// AddIngester adds the given ingester to the ring. Ingester will only use supplied tokens,
58// any other tokens are removed.

Callers 2

AddIngesterMethod · 0.85

Calls

no outgoing calls

Tested by 1