fix: dont use a callback with CreateBucket

This commit is contained in:
Derrick Hammer 2024-01-09 15:50:43 -05:00
parent b7107989d3
commit 646f69e920
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 3 deletions

View File

@ -99,9 +99,7 @@ func (p *P2PImpl) Init() error {
}
p.localNodeID = encoding.NewNodeId(p.nodeKeyPair.PublicKey())
err := utils.CreateBucket(nodeBucketName, p.Node().Db(), func(bucket *bolt.Bucket) {
p.nodesBucket = bucket
})
err := utils.CreateBucket(nodeBucketName, p.Node().Db())
if err != nil {
return err