Skip to content

Commit a33d26f

Browse files
Added logging
1 parent 2464f24 commit a33d26f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎chapter6/patterns/stream/stream.go‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ func (p *processor) LaunchWorkRoutines() {
129129
station.Location.Coordinates[0],
130130
geoNamesUserName)
131131

132+
// Before we write to the channel, check to see if
133+
// we are shutting down.
132134
select {
133135
case <-p.shutdown:
134136
log.Println("Work\t: Shutdown")

0 commit comments

Comments
 (0)