MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / IncrementSum

Method IncrementSum

db/event_manager_test.go:334–340  ·  view source on GitHub ↗
(sum float64)

Source from the content-addressed store, hash-verified

332}
333
334func (wr *WebhookRequest) IncrementSum(sum float64) float64 {
335 wr.mutex.Lock()
336 wr.sum += sum
337 sum = wr.sum
338 wr.mutex.Unlock()
339 return sum
340}
341
342func (wr *WebhookRequest) GetPayloads() [][]byte {
343 wr.mutex.Lock()

Callers 1

GetRouterWithHandlerFunction · 0.80

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected