mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 01:36:24 +01:00
start http profiling server by default
This commit is contained in:
parent
af42bb0a99
commit
6c51942b03
1 changed files with 8 additions and 0 deletions
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…
Add table
Reference in a new issue