@@ -34,7 +34,7 @@ std::shared_ptr<WorkerTimer> App::GetTimerWorker() {
34
34
LOG (ERROR) << " worker context manager is nullptr" ;
35
35
return nullptr ;
36
36
}
37
- std::string worker_timer_name = " worker.timer.# 1" ;
37
+ std::string worker_timer_name = " worker.T. 1" ;
38
38
auto w = ev_mgr_->Get <WorkerContext>(worker_timer_name);
39
39
if (w == nullptr ) {
40
40
LOG (ERROR)
@@ -440,7 +440,7 @@ bool App::StartCommonWorker(int worker_count) {
440
440
for (int i = 0 ; i < worker_count; ++i) {
441
441
auto worker = std::make_shared<WorkerCommon>();
442
442
worker->SetModName (" class" );
443
- worker->SetTypeName (" WorkerCommon " );
443
+ worker->SetTypeName (" C " );
444
444
if (!AddWorker (std::to_string (i), worker)) {
445
445
LOG (ERROR) << " start common worker " << i << " failed" ;
446
446
continue ;
@@ -454,8 +454,8 @@ bool App::StartCommonWorker(int worker_count) {
454
454
bool App::StartTimerWorker () {
455
455
auto worker = std::make_shared<WorkerTimer>();
456
456
worker->SetModName (" class" );
457
- worker->SetTypeName (" timer " );
458
- if (!AddWorker (" # 1" , worker)) {
457
+ worker->SetTypeName (" T " );
458
+ if (!AddWorker (" 1" , worker)) {
459
459
LOG (ERROR) << " start timer worker failed" ;
460
460
return false ;
461
461
}
0 commit comments