fix: dont use a callback with CreateBucket
This commit is contained in:
parent
b7107989d3
commit
646f69e920
|
@ -99,9 +99,7 @@ func (p *P2PImpl) Init() error {
|
||||||
}
|
}
|
||||||
p.localNodeID = encoding.NewNodeId(p.nodeKeyPair.PublicKey())
|
p.localNodeID = encoding.NewNodeId(p.nodeKeyPair.PublicKey())
|
||||||
|
|
||||||
err := utils.CreateBucket(nodeBucketName, p.Node().Db(), func(bucket *bolt.Bucket) {
|
err := utils.CreateBucket(nodeBucketName, p.Node().Db())
|
||||||
p.nodesBucket = bucket
|
|
||||||
})
|
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue