/// update spu connection, we do similar thing as add.
update spu connection, we do similar thing as add.
update spu connection we do similar thing as add .
async fn update_spu(&self, new_spu: SpuSpec, old_spu: SpuSpec) {
        debug!("updating new spu: {}, old spu: {}", new_spu.id, old_spu.id);
        self.inner_remove_spu(&old_spu);
        self.inner_add_spu(&new_spu);
        let spu_msg = SpuMsg::delete(old_spu.into());
        self.send_msg_to_all_live_spus(vec![spu_msg]).await;
    }
async fn update_spu ( & self , new_spu : SpuSpec , old_spu : SpuSpec ) { debug ! ( " " new_spu id old_spu id ) ; self . inner_remove_spu ( & old_spu ) ; self . inner_add_spu ( & new_spu ) ; let spu_msg = SpuMsg :: delete ( old_spu . into ( ) ) ; self . send_msg_to_all_live_spus ( vec ! [ spu_msg ] ) . await ; }
update spu connection, we do similar thing as add.
update spu connection we do similar thing as add .
&self
new_spu
SpuSpec
old_spu
SpuSpec