Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
exchain
nebula
Commits
93691cc0
Unverified
Commit
93691cc0
authored
Feb 28, 2023
by
Michael de Hoog
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Logging fixes
parent
1271d834
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
batch_submitter.go
op-batcher/batcher/batch_submitter.go
+1
-1
driver.go
op-batcher/batcher/driver.go
+6
-0
node.go
op-node/node/node.go
+1
-0
No files found.
op-batcher/batcher/batch_submitter.go
View file @
93691cc0
...
@@ -56,7 +56,6 @@ func Main(version string, cliCtx *cli.Context) error {
...
@@ -56,7 +56,6 @@ func Main(version string, cliCtx *cli.Context) error {
ctx
,
cancel
:=
context
.
WithCancel
(
context
.
Background
())
ctx
,
cancel
:=
context
.
WithCancel
(
context
.
Background
())
l
.
Info
(
"Batch Submitter started"
)
pprofConfig
:=
cfg
.
PprofConfig
pprofConfig
:=
cfg
.
PprofConfig
if
pprofConfig
.
Enabled
{
if
pprofConfig
.
Enabled
{
l
.
Info
(
"starting pprof"
,
"addr"
,
pprofConfig
.
ListenAddr
,
"port"
,
pprofConfig
.
ListenPort
)
l
.
Info
(
"starting pprof"
,
"addr"
,
pprofConfig
.
ListenAddr
,
"port"
,
pprofConfig
.
ListenPort
)
...
@@ -90,6 +89,7 @@ func Main(version string, cliCtx *cli.Context) error {
...
@@ -90,6 +89,7 @@ func Main(version string, cliCtx *cli.Context) error {
Namespace
:
"admin"
,
Namespace
:
"admin"
,
Service
:
rpc
.
NewAdminAPI
(
batchSubmitter
),
Service
:
rpc
.
NewAdminAPI
(
batchSubmitter
),
})
})
l
.
Info
(
"Admin RPC enabled"
)
}
}
if
err
:=
server
.
Start
();
err
!=
nil
{
if
err
:=
server
.
Start
();
err
!=
nil
{
cancel
()
cancel
()
...
...
op-batcher/batcher/driver.go
View file @
93691cc0
...
@@ -140,6 +140,9 @@ func (l *BatchSubmitter) Start() error {
...
@@ -140,6 +140,9 @@ func (l *BatchSubmitter) Start() error {
l
.
wg
.
Add
(
1
)
l
.
wg
.
Add
(
1
)
go
l
.
loop
()
go
l
.
loop
()
l
.
log
.
Info
(
"Batch Submitter started"
)
return
nil
return
nil
}
}
...
@@ -155,6 +158,9 @@ func (l *BatchSubmitter) Stop() error {
...
@@ -155,6 +158,9 @@ func (l *BatchSubmitter) Stop() error {
l
.
cancel
()
l
.
cancel
()
close
(
l
.
done
)
close
(
l
.
done
)
l
.
wg
.
Wait
()
l
.
wg
.
Wait
()
l
.
log
.
Info
(
"Batch Submitter stopped"
)
return
nil
return
nil
}
}
...
...
op-node/node/node.go
View file @
93691cc0
...
@@ -215,6 +215,7 @@ func (n *OpNode) initRPCServer(ctx context.Context, cfg *Config) error {
...
@@ -215,6 +215,7 @@ func (n *OpNode) initRPCServer(ctx context.Context, cfg *Config) error {
}
}
if
cfg
.
RPC
.
EnableAdmin
{
if
cfg
.
RPC
.
EnableAdmin
{
server
.
EnableAdminAPI
(
NewAdminAPI
(
n
.
l2Driver
,
n
.
metrics
))
server
.
EnableAdminAPI
(
NewAdminAPI
(
n
.
l2Driver
,
n
.
metrics
))
n
.
log
.
Info
(
"Admin RPC enabled"
)
}
}
n
.
log
.
Info
(
"Starting JSON-RPC server"
)
n
.
log
.
Info
(
"Starting JSON-RPC server"
)
if
err
:=
server
.
Start
();
err
!=
nil
{
if
err
:=
server
.
Start
();
err
!=
nil
{
...
...
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