Refactor: move peer name identifier to DB package

This commit is contained in:
Bryan Boreham committed 2017-01-11 13:05:25 +00:00
1 parent 92cfd3b4f9
commit 30d6639a98
2 files changed
+6 -3

No files matched your search

+4
View File
@@ -23,6 +23,10 @@ var (
topBucket = []byte("top")
)
const (
NameIdent = "peername"
)
func NewBoltDB(dbPathname string) (*BoltDB, error) {
db, err := bolt.Open(dbPathname, 0660, nil)
if err != nil {