Commit 18175ef
fix(sam3_image): prevent unwrap panic caused by LruCache eviction during mixed queries (#254)
* fix(sam3): prevent unwrap panic caused by LRU cache eviction
* fix: use get instead of contains to promote LRU items and prevent eviction
* fmt & clippy
---------
Co-authored-by: jamjamjon <xxyydzml@outlook.com>1 parent 9c37153 commit 18175ef
1 file changed
Lines changed: 20 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
351 | | - | |
| 351 | + | |
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
355 | 363 | | |
356 | | - | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
357 | 375 | | |
358 | 376 | | |
359 | 377 | | |
| |||
0 commit comments