diff options
author | Anton Evangelatov <anton.evangelatov@gmail.com> | 2018-11-08 03:39:08 +0800 |
---|---|---|
committer | Viktor TrĂ³n <viktor.tron@gmail.com> | 2018-11-08 03:39:08 +0800 |
commit | cf3b187bdef59078ba6570a2f5ee046ab87bcefd (patch) | |
tree | fbc16d9216df0d32e745f88cb3ac22e6dab256bf /swarm/api/filesystem.go | |
parent | 81533deae5ee4a7ec08842e2b6647f3affde5a71 (diff) | |
download | dexon-cf3b187bdef59078ba6570a2f5ee046ab87bcefd.tar dexon-cf3b187bdef59078ba6570a2f5ee046ab87bcefd.tar.gz dexon-cf3b187bdef59078ba6570a2f5ee046ab87bcefd.tar.bz2 dexon-cf3b187bdef59078ba6570a2f5ee046ab87bcefd.tar.lz dexon-cf3b187bdef59078ba6570a2f5ee046ab87bcefd.tar.xz dexon-cf3b187bdef59078ba6570a2f5ee046ab87bcefd.tar.zst dexon-cf3b187bdef59078ba6570a2f5ee046ab87bcefd.zip |
swarm, cmd/swarm: address ineffectual assignments (#18048)
* swarm, cmd/swarm: address ineffectual assignments
* swarm/network: remove unused vars from testHandshake
* swarm/storage/feed: revert cursor changes
Diffstat (limited to 'swarm/api/filesystem.go')
-rw-r--r-- | swarm/api/filesystem.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/swarm/api/filesystem.go b/swarm/api/filesystem.go index 43695efc1..266ef71be 100644 --- a/swarm/api/filesystem.go +++ b/swarm/api/filesystem.go @@ -122,6 +122,10 @@ func (fs *FileSystem) Upload(lpath, index string, toEncrypt bool) (string, error var wait func(context.Context) error ctx := context.TODO() hash, wait, err = fs.api.fileStore.Store(ctx, f, stat.Size(), toEncrypt) + if err != nil { + errors[i] = err + return + } if hash != nil { list[i].Hash = hash.Hex() } |