Commit 77a127be authored by Tsaiilin's avatar Tsaiilin

update

parent de3aa4af
......@@ -19,6 +19,7 @@ import (
"syscall"
"time"
"virjar.com/majora-go/infra"
"virjar.com/majora-go/trace"
"virjar.com/majora-go/client"
"virjar.com/majora-go/daemon"
......@@ -45,6 +46,7 @@ func init() {
}
func initial() {
trace.Start()
if global.Config.PprofPort > 0 {
safe.Go(func() {
addr := fmt.Sprintf("127.0.0.1:%d", global.Config.PprofPort)
......
......@@ -21,7 +21,7 @@ var (
sessionIdNop = "session_id_not_set"
)
func init() {
func Start() {
safe.Go(func() {
for {
e := <-sessionEventChan
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment