Commit 6786191
committed
Use cached MessageSweeper field in RqueueUtilityServiceImpl.makeEmpty
The constructor already resolves MessageSweeper.getInstance(...) into
the messageSweeper field; makeEmpty was still calling the static
getInstance on every invocation. Just call the cached instance.
Pure cleanup — getInstance is a synchronized double-checked-lock
singleton that returns the same instance the field already holds, so
behaviour is unchanged. This lines makeEmpty up with how the rest of
the class uses its injected dependencies.
Assisted-By: Claude Code1 parent e164cb0 commit 6786191
1 file changed
Lines changed: 5 additions & 7 deletions
File tree
- rqueue-redis/src/main/java/com/github/sonus21/rqueue/redis/web
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
233 | 231 | | |
234 | 232 | | |
235 | 233 | | |
| |||
0 commit comments