1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-30 08:07:46 +00:00

Removed test tasks and moved info print on task execute to taskmgr

This commit is contained in:
Mordred 2022-01-20 22:45:48 +01:00
parent 097a00b913
commit 092e3eca76
3 changed files with 2 additions and 6 deletions

View file

@ -16,6 +16,7 @@ void TaskMgr::update( uint64_t tickCount )
// is the task ready for execution? // is the task ready for execution?
if( ( tickCount - pTask->getQueueTimeMs() ) >= pTask->getDelayTimeMs() ) if( ( tickCount - pTask->getQueueTimeMs() ) >= pTask->getDelayTimeMs() )
{ {
Logger::info( pTask->toString() );
pTask->execute(); pTask->execute();
it = m_taskList.erase( it ); it = m_taskList.erase( it );
} }

View file

@ -23,7 +23,6 @@ void RemoveBNpcTask::onQueue()
void RemoveBNpcTask::execute() void RemoveBNpcTask::execute()
{ {
Logger::info( toString() );
auto teriMgr = Common::Service< World::Manager::TerritoryMgr >::ref(); auto teriMgr = Common::Service< World::Manager::TerritoryMgr >::ref();
auto pZone = teriMgr.getTerritoryByGuId( m_pBNpc->getTerritoryId() ); auto pZone = teriMgr.getTerritoryByGuId( m_pBNpc->getTerritoryId() );

View file

@ -263,10 +263,6 @@ void WorldServer::run( int32_t argc, char* argv[] )
Logger::info( "World server running on {0}:{1}", m_ip, m_port ); Logger::info( "World server running on {0}:{1}", m_ip, m_port );
taskMgr->queueTask( std::make_shared< Sapphire::World::TestTask >( 10000 ) );
taskMgr->queueTask( std::make_shared< Sapphire::World::TestTask >( 5000 ) );
taskMgr->queueTask( std::make_shared< Sapphire::World::TestTask >( 2000 ) );
mainLoop(); mainLoop();
for( auto& thread_entry : thread_list ) for( auto& thread_entry : thread_list )