Beispiel #1
0
func timerAt(c clock.Clock, t time.Time) <-chan time.Time {
	return c.After(t.Sub(c.Now()))
}
Beispiel #2
0
func (n *node) MarkContacted(c clock.Clock, infoHash InfoHash) {
	n.PastQueries[infoHash] = c.Now()
}