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
5d8f85eb
Commit
5d8f85eb
authored
Jun 09, 2023
by
Will Cory
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(indexer): Add name to toml config
parent
92df7779
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
config_test.go
indexer/config/config_test.go
+2
-0
indexer.toml
indexer/indexer.toml
+1
-0
No files found.
indexer/config/config_test.go
View file @
5d8f85eb
...
@@ -26,6 +26,7 @@ func TestLoadConfig(t *testing.T) {
...
@@ -26,6 +26,7 @@ func TestLoadConfig(t *testing.T) {
port = 5432
port = 5432
user = "postgres"
user = "postgres"
password = "postgres"
password = "postgres"
name = "indexer"
[api]
[api]
host = "127.0.0.1"
host = "127.0.0.1"
...
@@ -54,6 +55,7 @@ func TestLoadConfig(t *testing.T) {
...
@@ -54,6 +55,7 @@ func TestLoadConfig(t *testing.T) {
require
.
Equal
(
t
,
conf
.
DB
.
Port
,
5432
)
require
.
Equal
(
t
,
conf
.
DB
.
Port
,
5432
)
require
.
Equal
(
t
,
conf
.
DB
.
User
,
"postgres"
)
require
.
Equal
(
t
,
conf
.
DB
.
User
,
"postgres"
)
require
.
Equal
(
t
,
conf
.
DB
.
Password
,
"postgres"
)
require
.
Equal
(
t
,
conf
.
DB
.
Password
,
"postgres"
)
require
.
Equal
(
t
,
conf
.
DB
.
Name
,
"indexer"
)
require
.
Equal
(
t
,
conf
.
API
.
Host
,
"127.0.0.1"
)
require
.
Equal
(
t
,
conf
.
API
.
Host
,
"127.0.0.1"
)
require
.
Equal
(
t
,
conf
.
API
.
Port
,
8080
)
require
.
Equal
(
t
,
conf
.
API
.
Port
,
8080
)
require
.
Equal
(
t
,
conf
.
Metrics
.
Host
,
"127.0.0.1"
)
require
.
Equal
(
t
,
conf
.
Metrics
.
Host
,
"127.0.0.1"
)
...
...
indexer/indexer.toml
View file @
5d8f85eb
...
@@ -10,6 +10,7 @@ host = "127.0.0.1"
...
@@ -10,6 +10,7 @@ host = "127.0.0.1"
port
=
5432
port
=
5432
user
=
"postgres"
user
=
"postgres"
password
=
"postgres"
password
=
"postgres"
name
=
"indexer"
[api]
[api]
host
=
"127.0.0.1"
host
=
"127.0.0.1"
...
...
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