pub fn activate<T, C>(&self, ctx: &PollContext<EK, ER, T, C>) {
        ctx.apply_router
            .schedule_task(self.region_id, ApplyTask::register(self));

        ctx.coprocessor_host.on_region_changed(
            self.region(),
            RegionChangeEvent::Create,
            self.get_role(),
        );
    }
/// Register self to apply_scheduler so that the peer is then usable.
/// Also trigger `RegionChangeEvent::Create` here.
Register self to apply_scheduler so that the peer is then usable.
Also trigger `RegionChangeEvent::Create` here.
Register self to apply_scheduler so that the peer is then usable . Also trigger ` RegionChangeEvent :: Create ` here .
pub fn activate<T, C>(&self, ctx: &PollContext<EK, ER, T, C>) {
        ctx.apply_router
            .schedule_task(self.region_id, ApplyTask::register(self));
        ctx.coprocessor_host.on_region_changed(
            self.region(),
            RegionChangeEvent::Create,
            self.get_role(),
        );
    }
pub fn activate < T , C > ( & self , ctx : & PollContext < EK , ER , T , C > ) { ctx . apply_router . schedule_task ( self . region_id , ApplyTask :: register ( self ) ) ; ctx . coprocessor_host . on_region_changed ( self . region ( ) , RegionChangeEvent :: Create , self . get_role ( ) , ) ; }
Register self to apply_scheduler so that the peer is then usable.
Register self to apply_scheduler so that the peer is then usable .
&self
ctx
&PollContext<EK, ER, T, C>