Commit fc37c8d
committed
fix: preserve search count parameter during queue state restore
When restoring the queue state from disk, the count parameter for search
requests was being lost due to JSON marshaling converting integers to
float64. This fix ensures proper type conversion when restoring the state,
preventing the count from defaulting to 10.
- Add type conversion for count parameter in LoadState
- Handle float64 to int conversion for SearchRequest items
- Preserve original count value in restored queue state1 parent 168ac46 commit fc37c8d
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
146 | 153 | | |
147 | 154 | | |
148 | 155 | | |
| |||
0 commit comments