(&mut self)
| 138 | |
| 139 | impl Drop for DockerContainer { |
| 140 | fn drop(&mut self) { |
| 141 | if self.container.keep { |
| 142 | return; |
| 143 | } |
| 144 | if self |
| 145 | .dropper |
| 146 | .send(DropCommand::DropContainer(self.container.name.clone())) |
| 147 | .is_err() |
| 148 | { |
| 149 | tracing::error!( |
| 150 | container_name = self.container.name, |
| 151 | "dropper no longer listening" |
| 152 | ); |
| 153 | } |
| 154 | } |
| 155 | } |