예제 #1
0
파일: dht-util.go 프로젝트: hlandau/dht
func timerAt(c clock.Clock, t time.Time) <-chan time.Time {
	return c.After(t.Sub(c.Now()))
}
예제 #2
0
파일: node.go 프로젝트: hlandau/dht
func (n *node) MarkContacted(c clock.Clock, infoHash InfoHash) {
	n.PastQueries[infoHash] = c.Now()
}