OSDN Git Service
(root)
/
bytom
/
bytom-spv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60c6bb9
)
fix
author
oysheng
<oysheng@bytom.io>
Wed, 18 Apr 2018 13:15:39 +0000
(21:15 +0800)
committer
oysheng
<oysheng@bytom.io>
Wed, 18 Apr 2018 13:15:39 +0000
(21:15 +0800)
asset/asset.go
patch
|
blob
|
history
diff --git
a/asset/asset.go
b/asset/asset.go
index
5528684
..
cd370b8
100644
(file)
--- a/
asset/asset.go
+++ b/
asset/asset.go
@@
-319,17
+319,6
@@
func (reg *Registry) ListAssets() ([]*Asset, error) {
assets = append(assets, asset)
}
- extAssetIter := reg.db.IteratorPrefix([]byte(ExternalAssetPrefix))
- defer extAssetIter.Release()
-
- for extAssetIter.Next() {
- asset := &Asset{}
- if err := json.Unmarshal(extAssetIter.Value(), asset); err != nil {
- return nil, err
- }
- assets = append(assets, asset)
- }
-
return assets, nil
}