somehow data-dir disapeared from datapath

This commit is contained in:
l0k18
2023-06-30 12:48:38 +01:00
parent 36f3ee3a78
commit 397257724e
2 changed files with 3 additions and 3 deletions

View File

@@ -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
}

View File

@@ -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