Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
majora-go
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
majora
majora-go
Commits
77a127be
Commit
77a127be
authored
Jan 10, 2022
by
Tsaiilin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
de3aa4af
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
cli.go
cli.go
+2
-0
trace.go
trace/trace.go
+1
-1
No files found.
cli.go
View file @
77a127be
...
@@ -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
)
...
...
trace/trace.go
View file @
77a127be
...
@@ -21,7 +21,7 @@ var (
...
@@ -21,7 +21,7 @@ var (
sessionIdNop
=
"session_id_not_set"
sessionIdNop
=
"session_id_not_set"
)
)
func
ini
t
()
{
func
Star
t
()
{
safe
.
Go
(
func
()
{
safe
.
Go
(
func
()
{
for
{
for
{
e
:=
<-
sessionEventChan
e
:=
<-
sessionEventChan
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment