fixup to match spec, move constants to common location

This commit is contained in:
whyrusleeping
2020-03-03 15:48:25 -08:00
parent 4f2baa8953
commit d6723935b9
5 changed files with 16 additions and 16 deletions
+1 -3
View File
@@ -21,8 +21,6 @@ import (
"github.com/filecoin-project/lotus/node/modules/helpers"
)
const KadProtocolID = "/fil/kad/1.0.0"
type P2PHostIn struct {
fx.In
@@ -82,7 +80,7 @@ func DHTRouting(client bool) interface{} {
dhtopts.Client(client),
dhtopts.Datastore(dstore),
dhtopts.Validator(validator),
dhtopts.Protocols(KadProtocolID),
dhtopts.Protocols(build.DhtProtocolName),
)
if err != nil {