/// notify followers that it's state need to be updated
notify followers that it's state need to be updated
notify followers that it ' s state need to be updated
pub async fn notify_follower(&self, spu: &SpuId, replica: ReplicaKey) {
        let reader = self.read().await;
        if let Some(spu_ref) = reader.get(spu) {
            debug!(
                spu,
                %replica,
                "add notifer");
            spu_ref.add(replica).await;
        } else {
            warn!(spu, "invalid spu");
        }
    }
pub async fn notify_follower ( & self , spu : & SpuId , replica : ReplicaKey ) { let reader = self . read ( ) . await ; if let Some ( spu_ref ) = reader . get ( spu ) { debug ! ( spu replica " " ) ; spu_ref . add ( replica ) . await ; } else { warn ! ( spu " " ) ; } }
notify followers that it's state need to be updated
notify followers that it ' s state need to be updated
&self
spu
&SpuId
replica
ReplicaKey