MCPcopy Create free account
hub / github.com/SeeFlowerX/stackplz / addWorkerByUUID

Method addWorkerByUUID

user/event_processor/processer.go:97–101  ·  view source on GitHub ↗
(worker IWorker)

Source from the content-addressed store, hash-verified

95}
96
97func (this *EventProcessor) addWorkerByUUID(worker IWorker) {
98 this.Lock()
99 defer this.Unlock()
100 this.workerQueue[worker.GetUUID()] = worker
101}
102
103// 每个worker调用该方法,从处理器中删除自己
104func (this *EventProcessor) delWorkerByUUID(worker IWorker) {

Callers 1

dispatchMethod · 0.95

Calls 1

GetUUIDMethod · 0.65

Tested by

no test coverage detected