Skip to content

Conversation

@fbac
Copy link
Collaborator

@fbac fbac commented Jun 27, 2025

Check for closed channel in originatorStream.listen method to handle writeQueue channel closure

The code adds error handling for closed channel detection in the originatorStream.listen method within pkg/sync/originatorStream.go. The modification introduces a second return value check when receiving from the writeQueue channel to detect if the channel is closed, and logs an error message before terminating the goroutine when closure is detected.

📍Where to Start

Start with the originatorStream.listen method in pkg/sync/originatorStream.go.


Macroscope summarized e7028b9.

@fbac fbac requested a review from a team as a code owner June 27, 2025 15:12
@graphite-app
Copy link

graphite-app bot commented Jun 27, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • Queue - adds this PR to the back of the merge queue
  • Hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@fbac fbac force-pushed the 06-27-check_closed_ch branch from 411f7ac to e7028b9 Compare June 27, 2025 15:12
@fbac fbac merged commit 2aac81c into main Jun 27, 2025
9 checks passed
@fbac fbac deleted the 06-27-check_closed_ch branch June 27, 2025 15:36
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.

3 participants