mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-27 22:21:18 +02:00
start http profiling server by default
This commit is contained in:
8
lnd.go
8
lnd.go
@@ -21,6 +21,14 @@ var (
|
|||||||
func main() {
|
func main() {
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
|
go func() {
|
||||||
|
listenAddr := net.JoinHostPort("", "5009")
|
||||||
|
profileRedirect := http.RedirectHandler("/debug/pprof",
|
||||||
|
http.StatusSeeOther)
|
||||||
|
http.Handle("/", profileRedirect)
|
||||||
|
fmt.Println(http.ListenAndServe(listenAddr, nil))
|
||||||
|
}()
|
||||||
|
|
||||||
// Create, and start the lnwallet, which handles the core payment channel
|
// Create, and start the lnwallet, which handles the core payment channel
|
||||||
// logic, and exposes control via proxy state machines.
|
// logic, and exposes control via proxy state machines.
|
||||||
// TODO(roasbeef): accept config via cli flags, move to real config file
|
// TODO(roasbeef): accept config via cli flags, move to real config file
|
||||||
|
Reference in New Issue
Block a user