Skip to content

Commit

Permalink
Update subscriptions.md
Browse files Browse the repository at this point in the history
Fix tabs issue, causing indentation issues in the code example.
  • Loading branch information
HaraldNordgren authored Sep 27, 2024
1 parent 3a445f0 commit 5930bea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/recipes/subscriptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (r *subscriptionResolver) CurrentTime(ctx context.Context) (<-chan *model.T
// For this example we'll simply use a Goroutine with a simple loop.
go func() {
// Handle deregistration of the channel here. Note the `defer`
defer close(ch)
defer close(ch)

for {
// In our example we'll send the current time every second.
Expand Down

0 comments on commit 5930bea

Please sign in to comment.