les: fix errors in metric namespace (#22459)

* les: add trailing slash to metric namespace

* les: omit '.' in metric namespace
revert-23120-drop-eth-65
Martin Holst Swende 4 years ago committed by GitHub
parent be87f769f6
commit 3d299b7468
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      les/client.go
  2. 2
      les/server.go

@ -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
}

@ -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
}

Loading…
Cancel
Save