A little confusion of Lock
Reese1995 opened this issue · 0 comments
Reese1995 commented
hystrix-go/hystrix/pool_metrics.go
Line 45 in fa1af6a
My question is : why lock here?
From my point of view, there is only one goroutine that executes this block of code. Also, the element in channel won't be changed once pushed to channel.