Example #1
0
func timerAt(c clock.Clock, t time.Time) <-chan time.Time {
	return c.After(t.Sub(c.Now()))
}
Example #2
0
File: node.go Project: hlandau/dht
func (n *node) MarkContacted(c clock.Clock, infoHash InfoHash) {
	n.PastQueries[infoHash] = c.Now()
}