Make the stateful gorouting a single block
This commit is contained in:
parent
044d5b7238
commit
f41424b1d0
@ -56,7 +56,6 @@ func main() {
|
|||||||
// value in the case of `reads`).
|
// value in the case of `reads`).
|
||||||
go func() {
|
go func() {
|
||||||
var state = make(map[int]int)
|
var state = make(map[int]int)
|
||||||
|
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case read := <-reads:
|
case read := <-reads:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user