Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/couchbase/sync_gateway
/ GetSum
Method
GetSum
db/event_manager_test.go:327–332 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
325
}
326
327
func
(wr *WebhookRequest) GetSum() float64 {
328
wr.mutex.Lock()
329
sum := wr.sum
330
wr.mutex.Unlock()
331
return
sum
332
}
333
334
func
(wr *WebhookRequest) IncrementSum(sum float64) float64 {
335
wr.mutex.Lock()
Callers
nothing calls this directly
Calls
2
Lock
Method · 0.45
Unlock
Method · 0.45
Tested by
no test coverage detected