Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 488f4b5a authored by Ryan Prichard's avatar Ryan Prichard Committed by Automerger Merge Worker
Browse files

Merge "Explicitly ignore the result of std::async" into main am: 60dbdaa3

parents 947d407b 60dbdaa3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -734,7 +734,7 @@ void Snapuserd::ReadBlocks(const std::string& partition_name, const std::string&
    off_t offset = 0;

    for (int i = 0; i < num_threads; i++) {
        std::async(std::launch::async, &Snapuserd::ReadBlocksToCache, this, dm_block_device,
        (void)std::async(std::launch::async, &Snapuserd::ReadBlocksToCache, this, dm_block_device,
                         partition_name, offset, read_sz_per_thread);

        offset += read_sz_per_thread;