|
@@ -13,7 +13,6 @@ import ( |
|
|
_ "net/http/pprof" |
|
|
_ "net/http/pprof" |
|
|
"os" |
|
|
"os" |
|
|
"os/signal" |
|
|
"os/signal" |
|
|
"runtime" |
|
|
|
|
|
"syscall" |
|
|
"syscall" |
|
|
|
|
|
|
|
|
"go.uber.org/zap" |
|
|
"go.uber.org/zap" |
|
@@ -34,7 +33,7 @@ func main() { |
|
|
server.GracefulStop() |
|
|
server.GracefulStop() |
|
|
}() |
|
|
}() |
|
|
|
|
|
|
|
|
runtime.SetBlockProfileRate(1) |
|
|
|
|
|
|
|
|
//runtime.SetBlockProfileRate(1) |
|
|
go func() { |
|
|
go func() { |
|
|
http.ListenAndServe(":10001", nil) |
|
|
http.ListenAndServe(":10001", nil) |
|
|
}() |
|
|
}() |
|
|