Commit e91272a
fix(rust/face-recognition): guard post_upgrade model reload with metadata check
storage::bytes() calls unwrap() and panics on missing files; check both model
files exist before calling setup() to avoid trapping the canister on upgrade
when models haven't been uploaded yet.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent ef7e9cf commit e91272a
1 file changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
156 | 160 | | |
157 | 161 | | |
158 | 162 | | |
0 commit comments