Merge pull request #24 from pingcap/shenli/fix-golint
tidb: Add some comments
This commit is contained in:
7
tidb.go
7
tidb.go
@ -15,6 +15,7 @@ package tidb
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
// For pprof
|
||||
_ "net/http/pprof"
|
||||
"strings"
|
||||
"sync"
|
||||
@ -73,8 +74,10 @@ var (
|
||||
domap = &domainMap{
|
||||
domains: map[string]*domain.Domain{},
|
||||
}
|
||||
stores = make(map[string]kv.Driver)
|
||||
Debug = true
|
||||
stores = make(map[string]kv.Driver)
|
||||
// Debug is the switch for pprof. If Debug is true, tidb will start with pprof on.
|
||||
Debug = true
|
||||
// PprofAddr is the pprof url.
|
||||
PprofAddr = "localhost:8888"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user