8000 Merge pull request #30 from iSpoony/patch-1 · diamondtech/rabbitmq-tutorials@0b7fb86 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0b7fb86

Browse files
Merge pull request rabbitmq#30 from iSpoony/patch-1
optimization
2 parents 2eace3e + a75cb98 commit 0b7fb86

File tree

Collapse file tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

go/receive_logs_topic.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,7 @@ func main() {
6868
}()
6969

7070
log.Printf(" [*] Waiting for logs. To exit press CTRL+C")
71-
select {
72-
case <-done:
73-
break
74-
}
71+
<-done
7572
log.Printf("Done")
7673

7774
os.Exit(0)

0 commit comments

Comments
 (0)
0