mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
swarm/api: wait for key to be persisted. solving TestClientUploadDownloadDirectory
This commit is contained in:
parent
9e61e26ad5
commit
03f7465ca2
1 changed files with 2 additions and 1 deletions
|
|
@ -64,7 +64,8 @@ func (a *Api) NewManifest() (storage.Key, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
key, _, err := a.Store(bytes.NewReader(data), int64(len(data)))
|
key, wait, err := a.Store(bytes.NewReader(data), int64(len(data)))
|
||||||
|
wait()
|
||||||
return key, err
|
return key, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue