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
4d62a590
Commit
4d62a590
authored
Jun 08, 2023
by
Will Cory
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(indexer): return listen error in api
squash me: fix api unused import
parent
76980a01
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
api.go
indexer/api/api.go
+2
-6
No files found.
indexer/api/api.go
View file @
4d62a590
...
@@ -2,7 +2,6 @@ package api
...
@@ -2,7 +2,6 @@ package api
import
(
import
(
"encoding/json"
"encoding/json"
"log"
"net/http"
"net/http"
"github.com/ethereum-optimism/optimism/indexer/database"
"github.com/ethereum-optimism/optimism/indexer/database"
...
@@ -101,9 +100,6 @@ func NewApi(bv database.BridgeView) *Api {
...
@@ -101,9 +100,6 @@ func NewApi(bv database.BridgeView) *Api {
}
}
func
(
a
*
Api
)
Listen
(
port
string
)
{
func
(
a
*
Api
)
Listen
(
port
string
)
error
{
err
:=
http
.
ListenAndServe
(
port
,
a
.
Router
)
return
http
.
ListenAndServe
(
port
,
a
.
Router
)
if
err
!=
nil
{
log
.
Fatal
(
"Http server failed to start listening"
,
err
)
}
}
}
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