mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 06:55:59 +03:00
Remove unnecessary double declaration of namespace in bulkpropagatorjob
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
4375a24f0f
commit
98b8fde2f0
1 changed files with 5 additions and 9 deletions
|
@ -33,12 +33,6 @@
|
|||
#include <QJsonObject>
|
||||
#include <QJsonValue>
|
||||
|
||||
namespace OCC {
|
||||
|
||||
Q_LOGGING_CATEGORY(lcBulkPropagatorJob, "nextcloud.sync.propagator.bulkupload", QtInfoMsg)
|
||||
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
QByteArray getEtagFromJsonReply(const QJsonObject &reply)
|
||||
|
@ -65,14 +59,15 @@ QByteArray getHeaderFromJsonReply(const QJsonObject &reply, const QByteArray &he
|
|||
}
|
||||
|
||||
constexpr auto batchSize = 100;
|
||||
|
||||
constexpr auto parallelJobsMaximumCount = 1;
|
||||
|
||||
}
|
||||
|
||||
namespace OCC {
|
||||
|
||||
BulkPropagatorJob::BulkPropagatorJob(OwncloudPropagator *propagator,
|
||||
const std::deque<SyncFileItemPtr> &items)
|
||||
Q_LOGGING_CATEGORY(lcBulkPropagatorJob, "nextcloud.sync.propagator.bulkupload", QtInfoMsg)
|
||||
|
||||
BulkPropagatorJob::BulkPropagatorJob(OwncloudPropagator *propagator, const std::deque<SyncFileItemPtr> &items)
|
||||
: PropagatorJob(propagator)
|
||||
, _items(items)
|
||||
{
|
||||
|
@ -230,6 +225,7 @@ void BulkPropagatorJob::triggerUpload()
|
|||
adjustLastJobTimeout(job, timeout);
|
||||
_jobs.append(job);
|
||||
job->start();
|
||||
|
||||
if (parallelism() == PropagatorJob::JobParallelism::FullParallelism && _jobs.size() < parallelJobsMaximumCount) {
|
||||
scheduleSelfOrChild();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue