Update openp2p.go

change forever from chan bool to chan struct{}
This commit is contained in:
W192547975
2023-07-29 20:25:14 +08:00
committed by GitHub
parent 8ebdf3341e
commit 6087b880b9

View File

@@ -63,7 +63,7 @@ func Run() {
return
}
gLog.Println(LvINFO, "waiting for connection...")
forever := make(chan bool)
forever := make(chan struct{})
<-forever
}