Skip to content

Make ProcessMessages synchronous now that it no longer awaits#177

Merged
stidsborg merged 1 commit into
mainfrom
make-processmessages-sync
Jun 27, 2026
Merged

Make ProcessMessages synchronous now that it no longer awaits#177
stidsborg merged 1 commit into
mainfrom
make-processmessages-sync

Conversation

@stidsborg

Copy link
Copy Markdown
Owner

Summary

Follow-up to #176. The dedup branch in QueueManager.ProcessMessages no longer awaits _messageClearer.Clear — it stages the position and persists it to the DeliveredPositionsId effect instead — so ProcessMessages has no remaining awaits.

This changes it from async Task to void and drops the await at both call sites (Push, FetchAndNotify). Both callers remain async for the fetch-semaphore wait and the message-store call.

Notes

The "make synchronous" cleanup was originally meant to ride along on #176 but was dropped when that PR squash-merged before its second commit synced. This PR redoes it on top of current main.

Testing

  • dotnet build of the core project passes (0 warnings, 0 errors) — confirms no "async method lacks await" warnings, i.e. both callers genuinely still need to be async.

The dedup branch no longer awaits _messageClearer.Clear (it stages the
position and persists it to the DeliveredPositionsId effect instead), so
ProcessMessages has no remaining awaits. Change it from async Task to void
and drop the await at both call sites (Push, FetchAndNotify). Both callers
remain async for the fetch semaphore and message-store calls.
@stidsborg stidsborg merged commit 1d509c7 into main Jun 27, 2026
8 checks passed
@stidsborg stidsborg deleted the make-processmessages-sync branch June 27, 2026 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant