start http profiling server by default
This commit is contained in:
parent
af42bb0a99
commit
6c51942b03
8
lnd.go
8
lnd.go
@ -21,6 +21,14 @@ var (
|
||||
func main() {
|
||||
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
|
||||
// logic, and exposes control via proxy state machines.
|
||||
// TODO(roasbeef): accept config via cli flags, move to real config file
|
||||
|
Loading…
Reference in New Issue
Block a user