Skip to content

Commit

Permalink
feat(tinder): Add dht driver
Browse files Browse the repository at this point in the history
  • Loading branch information
gfanton committed Mar 6, 2020
1 parent 4b73fac commit c92994f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions go/internal/tinder/driver_dht.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package tinder

import (
p2p_discovery "github.com/libp2p/go-libp2p-discovery"
p2p_dht "github.com/libp2p/go-libp2p-kad-dht"
)

func NewDHTDriver(dht *p2p_dht.IpfsDHT) Driver {
disc := p2p_discovery.NewRoutingDiscovery(dht)
return ComposeDriver(disc, disc, NoopUnregister)
}

0 comments on commit c92994f

Please sign in to comment.