afex / hystrix-go

Netflix's Hystrix latency and fault tolerance library, for Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A little confusion of Lock

Reese1995 opened this issue · comments

m.Mutex.RLock()

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.