MCPcopy Create free account
hub / github.com/cairoeth/preconfirmations / stopProcessLoop

Method stopProcessLoop

preconf-share/simqueue/queue_test.go:50–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48}
49
50func (q *queueRunner) stopProcessLoop() {
51 if q.cancel != nil {
52 q.cancel()
53 }
54 if q.wg != nil {
55 q.wg.Wait()
56 }
57 err := q.queue.CleanQueues(context.Background())
58 if err != nil {
59 panic(err)
60 }
61}
62
63type testWorker struct {
64 processed chan []byte

Callers 4

TestRedisQueueFunction · 0.80
testQueueReschedFunction · 0.80

Calls 1

CleanQueuesMethod · 0.80

Tested by

no test coverage detected