关闭PPROF

This commit is contained in:
Rosy-zhudan
2019-08-26 17:46:15 +08:00
parent 43ae1c2efa
commit 69cd849bbd

View File

@@ -15,8 +15,8 @@ import (
"git.rosy.net.cn/jx-callback/business/partner/putils"
"git.rosy.net.cn/jx-callback/globals"
_ "net/http/pprof"
"net/http"
// _ "net/http/pprof"
// "net/http"
)
const (
@@ -202,9 +202,9 @@ func GetFilterStoreList(storeList []*cms.StoreExt, vendorMap, storeIDMap map[int
}
func StartOrEndOpStore(ctx *jxcontext.Context, isStart bool, vendorIDList []int, storeIDList []int, startTime, endTime int16, isAsync, isContinueWhenError bool) (retVal interface{}, err error) {
go func() {
http.ListenAndServe("127.0.0.1:8086", nil)
}()
// go func() {
// http.ListenAndServe("127.0.0.1:8086", nil)
// }()
storeList, err := GetStoreList(ctx)
vendorMap := make(map[int]bool)
for _, vendorID := range vendorIDList {