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

Method getWorkerByUUID

user/event_processor/processer.go:85–95  ·  view source on GitHub ↗

func (this *EventProcessor) Incoming() chan user.IEventStruct { return this.incoming }

(uuid string)

Source from the content-addressed store, hash-verified

83//}
84
85func (this *EventProcessor) getWorkerByUUID(uuid string) (bool, IWorker) {
86 this.Lock()
87 defer this.Unlock()
88 var eWorker IWorker
89 var found bool
90 eWorker, found = this.workerQueue[uuid]
91 if !found {
92 return false, eWorker
93 }
94 return true, eWorker
95}
96
97func (this *EventProcessor) addWorkerByUUID(worker IWorker) {
98 this.Lock()

Callers 1

dispatchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected