/* */ #include "CheckIntegrityDispatcherCommand.h" #include "CheckIntegrityEntry.h" #include "CheckIntegrityCommand.h" #include "message.h" #include "Logger.h" #include "LogFactory.h" #include "util.h" #include "fmt.h" namespace aria2 { CheckIntegrityDispatcherCommand::CheckIntegrityDispatcherCommand( cuid_t cuid, CheckIntegrityMan* fileAllocMan, DownloadEngine* e) : SequentialDispatcherCommand{cuid, fileAllocMan, e} { setStatusRealtime(); } std::unique_ptr CheckIntegrityDispatcherCommand::createCommand(CheckIntegrityEntry* entry) { cuid_t newCUID = getDownloadEngine()->newCUID(); A2_LOG_INFO(fmt("CUID#%" PRId64 " - Dispatching CheckIntegrityCommand " "CUID#%" PRId64 ".", getCuid(), newCUID)); return make_unique(newCUID, entry->getRequestGroup(), getDownloadEngine(), entry); } } // namespace aria2