This commit is contained in:
Daniel 2024-06-27 22:00:27 +08:00
parent 42d27a82a1
commit d65ef3cd7c
No known key found for this signature in database
GPG Key ID: 86211BA83DF03017

View File

@ -49,11 +49,10 @@ func GetMirrorAttrViewBlockIDs(avID string) (ret []string) {
} }
blockIDs := avBlocks[avID] blockIDs := avBlocks[avID]
for _, blockID := range blockIDs { bts := GetBlockTrees(blockIDs)
if nil != GetBlockTree(blockID) { for blockID := range bts {
ret = append(ret, blockID) ret = append(ret, blockID)
} }
}
return return
} }
@ -87,11 +86,8 @@ func BatchGetMirrorAttrViewBlocks(avIDs []string) (ret []*AvBlock) {
for _, avID := range avIDs { for _, avID := range avIDs {
var blockIDs []string var blockIDs []string
for _, blockID := range avBlocks[avID] { bts := GetBlockTrees(avBlocks[avID])
if nil == GetBlockTree(blockID) { for blockID := range bts {
continue
}
blockIDs = append(blockIDs, blockID) blockIDs = append(blockIDs, blockID)
} }
avBlock := &AvBlock{ avBlock := &AvBlock{