good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
19866075
Commit
19866075
authored
7 years ago
by
Egon Elbre
Browse files
Options
Downloads
Patches
Plain Diff
node: fix megacheck warnings
parent
b159cdd8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
node/config.go
+2
-2
2 additions, 2 deletions
node/config.go
node/utils_test.go
+0
-2
0 additions, 2 deletions
node/utils_test.go
with
2 additions
and
4 deletions
node/config.go
+
2
−
2
View file @
19866075
...
...
@@ -35,7 +35,7 @@ import (
"github.com/ethereum/go-ethereum/p2p/discover"
)
var
(
const
(
datadirPrivateKey
=
"nodekey"
// Path within the datadir to the node's private key
datadirDefaultKeyStore
=
"keystore"
// Path within the datadir to the keystore
datadirStaticNodes
=
"static-nodes.json"
// Path within the datadir to the static node list
...
...
@@ -160,7 +160,7 @@ func (c *Config) NodeDB() string {
if
c
.
DataDir
==
""
{
return
""
// ephemeral
}
return
c
.
resolvePath
(
"nodes"
)
return
c
.
resolvePath
(
datadirNodeDatabase
)
}
// DefaultIPCEndpoint returns the IPC path used by default.
...
...
This diff is collapsed.
Click to expand it.
node/utils_test.go
+
0
−
2
View file @
19866075
...
...
@@ -41,12 +41,10 @@ func NewNoopService(*ServiceContext) (Service, error) { return new(NoopService),
type
NoopServiceA
struct
{
NoopService
}
type
NoopServiceB
struct
{
NoopService
}
type
NoopServiceC
struct
{
NoopService
}
type
NoopServiceD
struct
{
NoopService
}
func
NewNoopServiceA
(
*
ServiceContext
)
(
Service
,
error
)
{
return
new
(
NoopServiceA
),
nil
}
func
NewNoopServiceB
(
*
ServiceContext
)
(
Service
,
error
)
{
return
new
(
NoopServiceB
),
nil
}
func
NewNoopServiceC
(
*
ServiceContext
)
(
Service
,
error
)
{
return
new
(
NoopServiceC
),
nil
}
func
NewNoopServiceD
(
*
ServiceContext
)
(
Service
,
error
)
{
return
new
(
NoopServiceD
),
nil
}
// InstrumentedService is an implementation of Service for which all interface
// methods can be instrumented both return value as well as event hook wise.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment