MCPcopy Create free account
hub / github.com/daodst/chat / clearQueue

Method clearQueue

federationapi/queue/queue.go:181–187  ·  view source on GitHub ↗
(oq *destinationQueue)

Source from the content-addressed store, hash-verified

179}
180
181func (oqs *OutgoingQueues) clearQueue(oq *destinationQueue) {
182 oqs.queuesMutex.Lock()
183 defer oqs.queuesMutex.Unlock()
184
185 delete(oqs.queues, oq.destination)
186 destinationQueueTotal.Dec()
187}
188
189// SendEvent sends an event to the destinations
190func (oqs *OutgoingQueues) SendEvent(

Callers 1

backgroundSendMethod · 0.80

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected