Update main.go
This commit is contained in:
parent
fb702b40f5
commit
84d005ade2
1 changed files with 2 additions and 1 deletions
3
main.go
3
main.go
|
@ -23,7 +23,8 @@ func main() {
|
|||
profilerPort, err := strconv.Atoi(os.Getenv("PROFILER_PORT"))
|
||||
if err == nil && profilerPort > 0 {
|
||||
go func() {
|
||||
http.ListenAndServe(fmt.Sprintf("localhost:%d", profilerPort), nil)
|
||||
log.Printf("starting profiler on port %d", profilerPort)
|
||||
http.ListenAndServe(fmt.Sprintf(":%d", profilerPort), nil)
|
||||
}()
|
||||
}
|
||||
util.CleanupDownloadsDir()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue