The core protocol of WoopChain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
woop/p2p/host/hostv2/util.go

20 lines
255 B

package hostv2
import (
"bufio"
"github.com/ethereum/go-ethereum/log"
)
func catchError(err error) {
if err != nil {
log.Error("catchError", "err", err)
panic(err)
}
}
func writeData(w *bufio.Writer, data []byte) {
w.Write(data)
w.Flush()
}