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

Method Clear

db/event_manager_test.go:355–361  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

353}
354
355func (wr *WebhookRequest) Clear() {
356 wr.mutex.Lock()
357 wr.count = 0
358 wr.sum = 0.0
359 wr.payloads = nil
360 wr.mutex.Unlock()
361}
362
363func (em *EventManager) waitForProcessedTotal(ctx context.Context, waitCount int, maxWaitTime time.Duration) error {
364 startTime := time.Now()

Callers 1

InitWebhookTestFunction · 0.95

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected