cherami-server icon indicating copy to clipboard operation
cherami-server copied to clipboard

ConcurrentMap size calculation is wrong?

Open wxing1292 opened this issue 6 years ago • 0 comments

Please see the followings:

  1. Remove decrement the counter with no checking of whether key exists or not: https://github.com/uber/cherami-server/blob/master/common/concurrentmap.go#L173

  2. Put increase the counter with no checking of whether key exists or not: https://github.com/uber/cherami-server/blob/master/common/concurrentmap.go#L148

wxing1292 avatar Dec 01 '17 18:12 wxing1292