Move shared state initialization (issues, seen) and the load() call inside the mutex scope in NewQueueService() to eliminate the race window where concurrent callers could observe partially initialized state. Remove the redundant heap.Init before the lock since load() already calls heap.Init when restoring from disk. Add documentation to save() and load() noting they must be called with q.mu held. Fixes #51 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| bugseti | ||
| cmd | ||
| core-ide | ||
| tools/i18n-validate | ||
| variants | ||