mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
fixed upload index
This commit is contained in:
parent
bca8ec1bde
commit
a2de3ad8a4
1 changed files with 1 additions and 2 deletions
|
|
@ -292,8 +292,6 @@ func (self *Api) Upload(lpath, index string) (string, error) {
|
||||||
return "", errors[i]
|
return "", errors[i]
|
||||||
}
|
}
|
||||||
entry.Path = regularSlashes(entry.Path[start:])
|
entry.Path = regularSlashes(entry.Path[start:])
|
||||||
trie.addEntry(entry)
|
|
||||||
|
|
||||||
if entry.Path == index {
|
if entry.Path == index {
|
||||||
ientry := &manifestTrieEntry{
|
ientry := &manifestTrieEntry{
|
||||||
Path: "",
|
Path: "",
|
||||||
|
|
@ -302,6 +300,7 @@ func (self *Api) Upload(lpath, index string) (string, error) {
|
||||||
}
|
}
|
||||||
trie.addEntry(ientry)
|
trie.addEntry(ientry)
|
||||||
}
|
}
|
||||||
|
trie.addEntry(entry)
|
||||||
}
|
}
|
||||||
|
|
||||||
err2 := trie.recalcAndStore()
|
err2 := trie.recalcAndStore()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue