Skip to content

Commit

Permalink
nit: Construct the MessageBuilder in a simpler way
Browse files Browse the repository at this point in the history
  • Loading branch information
pajlada committed Nov 19, 2023
1 parent 1a64b0e commit 4f9b0d5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/singletons/ImageUploader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,8 @@ void ImageUploader::handleSuccessfulUpload(const NetworkResult &result,
// 2 seconds for the timer that's there not to spam the remote server
// and 1 second of actual uploading.
auto timeToUpload = this->uploadQueue_.size() * (UPLOAD_DELAY / 1000 + 1);
MessageBuilder builder =
MessageBuilder(imageUploaderResultMessage, link, deletionLink,
this->uploadQueue_.size(), timeToUpload);
MessageBuilder builder(imageUploaderResultMessage, link, deletionLink,
this->uploadQueue_.size(), timeToUpload);
channel->addMessage(builder.release());
if (this->uploadQueue_.empty())
{
Expand Down

0 comments on commit 4f9b0d5

Please sign in to comment.