示例#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()
}