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

Method IncrementCount

db/event_manager_test.go:319–325  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

317}
318
319func (wr *WebhookRequest) IncrementCount() int {
320 wr.mutex.Lock()
321 wr.count = wr.count + 1
322 count := wr.count
323 wr.mutex.Unlock()
324 return count
325}
326
327func (wr *WebhookRequest) GetSum() float64 {
328 wr.mutex.Lock()

Callers 1

GetRouterWithHandlerFunction · 0.80

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected