Skip to content

Commit

Permalink
baetyl-2781 update boltdb key (#795)
Browse files Browse the repository at this point in the history
  • Loading branch information
zxxf18 committed Oct 31, 2023
1 parent 27eb1ef commit f0f93d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package node

import (
"encoding/json"
"fmt"
"os"
"runtime"
"time"
Expand All @@ -16,6 +17,8 @@ import (
routing "github.com/qiangxue/fasthttp-routing"
bh "github.com/timshannon/bolthold"
bolt "go.etcd.io/bbolt"

innerutils "github.com/baetyl/baetyl/v2/utils"
)

const (
Expand Down Expand Up @@ -63,7 +66,7 @@ func NewNode(store *bh.Store) (Node, error) {
},
}
n := &node{
id: []byte("baetyl-edge-node"),
id: []byte(fmt.Sprintf("%s.%s.baetyl-edge-node", os.Getenv(innerutils.EnvKeyNodeNamespace), os.Getenv(context.KeyNodeName))),
store: store,
log: log.With(log.Any("core", "node")),
}
Expand Down

0 comments on commit f0f93d5

Please sign in to comment.