Add RoutingDHT struct that implements the routing.Routing interface and embeds the DHT
dennis-tra opened this issue · 1 comments
dennis-tra commented
Given that many are not happy with the routing.Routing
interface we could avoid "polluting" the DHT API with the routing.Routing methods. So I propose to do the following:
type RoutingDHT struct {
*DHT
}
var _ routing.Routing = (*RoutingDHT)(nil)
func NewRoutingDHT(d *DHT) *RoutingDHT {
return &RoutingDHT{DHT: d}
}
// routing.Routing methods...
iand commented
Migrated to plprobelab/zikade#30