summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/ObjectStore
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-02-15 13:24:58 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-02-15 13:24:58 +0100
commit104616c1da1781822f110873c5c8e74385976b4f (patch)
treea0ec5690d2ef9af7da09cf23f36c4f32aa55c3c9 /lib/private/Files/ObjectStore
parent49a0ea01e53be89c4a8bccf26e2327f6f5c41fc5 (diff)
downloadnextcloud-server-104616c1da1781822f110873c5c8e74385976b4f.tar.gz
nextcloud-server-104616c1da1781822f110873c5c8e74385976b4f.zip
Use CountWrapper instead of almost identical CountReadStream
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Files/ObjectStore')
-rw-r--r--lib/private/Files/ObjectStore/ObjectStoreStorage.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/ObjectStore/ObjectStoreStorage.php b/lib/private/Files/ObjectStore/ObjectStoreStorage.php
index 7ee1c8e2055..83a649e6084 100644
--- a/lib/private/Files/ObjectStore/ObjectStoreStorage.php
+++ b/lib/private/Files/ObjectStore/ObjectStoreStorage.php
@@ -26,9 +26,9 @@
namespace OC\Files\ObjectStore;
use Icewind\Streams\CallbackWrapper;
+use Icewind\Streams\CountWrapper;
use Icewind\Streams\IteratorDirectory;
use OC\Files\Cache\CacheEntry;
-use OC\Files\Stream\CountReadStream;
use OCP\Files\NotFoundException;
use OCP\Files\ObjectStore\IObjectStore;
@@ -443,7 +443,7 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common {
try {
//upload to object storage
if ($size === null) {
- $countStream = CountReadStream::wrap($stream, function ($writtenSize) use ($fileId, &$size) {
+ $countStream = CountWrapper::wrap($stream, function ($writtenSize) use ($fileId, &$size) {
$this->getCache()->update($fileId, [
'size' => $writtenSize
]);