Skip to content

Commit 49f7028

Browse files
authored
Update tutorial-two-go-stream.md
fixed missed argument in the nested loop
1 parent 7c208ad commit 49f7028

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/tutorial-two-go-stream.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func handlePublishConfirm(confirms stream.ChannelPublishConfirm, messageCount in
115115
go func() {
116116
confirmedCount := 0
117117
for confirmed := range confirms {
118-
for _, _ = range confirmed {
118+
for _, msg := range confirmed {
119119
if msg.IsConfirmed() {
120120
confirmedCount++
121121
if confirmedCount == messageCount {

0 commit comments

Comments
 (0)