start http profiling server by default

This commit is contained in:
Olaoluwa Osuntokun 2016-01-16 19:01:06 -08:00
parent af42bb0a99
commit 6c51942b03

8
lnd.go
View File

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