Replaces the vm on the already claimed worker, used when the guild's scripts changed while a session was active.
(
&mut self,
new_vm_session_id: u64,
scripts: Vec<Script>,
premium_tier: Option<PremiumSlotTier>,
)
| 108 | /// Replaces the vm on the already claimed worker, used when the guild's |
| 109 | /// scripts changed while a session was active. |
| 110 | pub fn restart_vm( |
| 111 | &mut self, |
| 112 | new_vm_session_id: u64, |
| 113 | scripts: Vec<Script>, |
| 114 | premium_tier: Option<PremiumSlotTier>, |
| 115 | ) -> Result<(), ()> { |
| 116 | self.send_create_scripts_vm(new_vm_session_id, scripts, premium_tier) |
| 117 | } |
| 118 | |
| 119 | fn send_create_scripts_vm( |
| 120 | &mut self, |
no test coverage detected