From 8fcf70418dd69f007f577b23b9563202563f5364 Mon Sep 17 00:00:00 2001 From: Harald Nordgren Date: Fri, 27 Sep 2024 20:38:47 +0200 Subject: [PATCH] Update subscriptions.md (#3305) * Update subscriptions.md Fix tabs issue, causing indentation issues in the code example. * Update subscriptions.md --- docs/content/recipes/subscriptions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/recipes/subscriptions.md b/docs/content/recipes/subscriptions.md index 4cf72204e47..2884af43791 100644 --- a/docs/content/recipes/subscriptions.md +++ b/docs/content/recipes/subscriptions.md @@ -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.