Commit 77a127be authored by Tsaiilin's avatar Tsaiilin

update

parent de3aa4af
...@@ -19,6 +19,7 @@ import ( ...@@ -19,6 +19,7 @@ import (
"syscall" "syscall"
"time" "time"
"virjar.com/majora-go/infra" "virjar.com/majora-go/infra"
"virjar.com/majora-go/trace"
"virjar.com/majora-go/client" "virjar.com/majora-go/client"
"virjar.com/majora-go/daemon" "virjar.com/majora-go/daemon"
...@@ -45,6 +46,7 @@ func init() { ...@@ -45,6 +46,7 @@ func init() {
} }
func initial() { func initial() {
trace.Start()
if global.Config.PprofPort > 0 { if global.Config.PprofPort > 0 {
safe.Go(func() { safe.Go(func() {
addr := fmt.Sprintf("127.0.0.1:%d", global.Config.PprofPort) addr := fmt.Sprintf("127.0.0.1:%d", global.Config.PprofPort)
......
...@@ -21,7 +21,7 @@ var ( ...@@ -21,7 +21,7 @@ var (
sessionIdNop = "session_id_not_set" sessionIdNop = "session_id_not_set"
) )
func init() { func Start() {
safe.Go(func() { safe.Go(func() {
for { for {
e := <-sessionEventChan 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