somehow data-dir disapeared from datapath
This commit is contained in:
@@ -37,8 +37,8 @@ func NewDHT(ctx context.Context, host host.Host,
|
||||
wg.Add(1)
|
||||
go func() {
|
||||
if e := host.Connect(ctx, *peerinfo); fails(e) {
|
||||
log.D.F("Error while connecting to node %q: %-v",
|
||||
peerinfo, e)
|
||||
log.D.F("Error while connecting to node %q",
|
||||
peerinfo)
|
||||
wg.Done()
|
||||
return
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ func Run() {
|
||||
var e error
|
||||
|
||||
netParams = cfg.SelectNetworkParams(viper.GetString("network"))
|
||||
dataPath := viper.GetString("")
|
||||
dataPath := viper.GetString("data-dir")
|
||||
var pkr []byte
|
||||
if pkr, e = privKey.Raw(); check(e) {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user