1
0
mirror of https://github.com/tmrts/go-patterns.git synced 2025-02-20 14:23:13 +03:00

Producer Consumer Part

Fix a typo.
This commit is contained in:
Wei Fu 2017-03-30 17:05:53 +08:00
parent 28cf6c4cfc
commit abba91a6ac

View File

@ -26,7 +26,7 @@ func main() {
}(i) }(i)
} }
// start three consumers // start two consumers
consumer1 := pc.NewConsumer(cAddr1) consumer1 := pc.NewConsumer(cAddr1)
pc.StartConsumer(consumer1, pAddr) pc.StartConsumer(consumer1, pAddr)
consumer2 := pc.NewConsumer(cAddr2) consumer2 := pc.NewConsumer(cAddr2)