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
e7d447e3
Unverified
Commit
e7d447e3
authored
Jun 02, 2024
by
Adrian Sutton
Committed by
GitHub
Jun 01, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
external-geth: Fix lint error by checking error (#10713)
parent
bd7ceb02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
main.go
op-e2e/external_geth/main.go
+4
-1
No files found.
op-e2e/external_geth/main.go
View file @
e7d447e3
...
@@ -5,6 +5,7 @@ import (
...
@@ -5,6 +5,7 @@ import (
"errors"
"errors"
"flag"
"flag"
"fmt"
"fmt"
"io"
"os"
"os"
"os/exec"
"os/exec"
"os/signal"
"os/signal"
...
@@ -176,7 +177,9 @@ func execute(binPath string, config external.Config) (*gethSession, error) {
...
@@ -176,7 +177,9 @@ func execute(binPath string, config external.Config) (*gethSession, error) {
}
}
var
authString
string
var
authString
string
var
port
int
var
port
int
fmt
.
Fscanf
(
sess
.
Err
,
"%d %s"
,
&
port
,
&
authString
)
if
_
,
err
:=
fmt
.
Fscanf
(
sess
.
Err
,
"%d %s"
,
&
port
,
&
authString
);
err
!=
nil
&&
!
errors
.
Is
(
err
,
io
.
EOF
)
{
return
nil
,
fmt
.
Errorf
(
"error while reading auth string: %w"
,
err
)
}
switch
authString
{
switch
authString
{
case
"auth=true"
:
case
"auth=true"
:
enginePort
=
port
enginePort
=
port
...
...
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