mirror of
https://github.com/arnaucube/go-dht.git
synced 2026-02-06 19:06:44 +01:00
add admin RPC find call, add kademlia NodeLookup interactive
This commit is contained in:
@@ -43,6 +43,15 @@ func cmdStart(c *cli.Context) error {
|
||||
}
|
||||
log.Info("New node created with ID: ", n.ID())
|
||||
}
|
||||
|
||||
go func() {
|
||||
admin := node.NewAdmin(n)
|
||||
err := admin.Start()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}()
|
||||
|
||||
err = n.Start()
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user