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:
parent
28cf6c4cfc
commit
abba91a6ac
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user