les: fix errors in metric namespace (#22459)

* les: add trailing slash to metric namespace

* les: omit '.' in metric namespace
This commit is contained in:
Martin Holst Swende 2021-03-09 09:04:03 +01:00 committed by GitHub
parent be87f769f6
commit 3d299b7468
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ func New(stack *node.Node, config *ethconfig.Config) (*LightEthereum, error) {
if err != nil {
return nil, err
}
lesDb, err := stack.OpenDatabase("les.client", 0, 0, "eth/db/les.client")
lesDb, err := stack.OpenDatabase("les.client", 0, 0, "eth/db/lesclient/")
if err != nil {
return nil, err
}

View File

@ -87,7 +87,7 @@ type LesServer struct {
}
func NewLesServer(node *node.Node, e ethBackend, config *ethconfig.Config) (*LesServer, error) {
lesDb, err := node.OpenDatabase("les.server", 0, 0, "eth/db/les.server")
lesDb, err := node.OpenDatabase("les.server", 0, 0, "eth/db/lesserver/")
if err != nil {
return nil, err
}