MCPcopy Create free account
hub / github.com/BWbwchen/MapReduce / setID

Method setID

worker/worker.go:257–259  ·  view source on GitHub ↗
(id int)

Source from the content-addressed store, hash-verified

255}
256
257func (wr *Worker) setID(id int) {
258 wr.ID = id
259}
260
261func (wr *Worker) Health(ctx context.Context, in *rpc.Empty) (*rpc.WorkerState, error) {
262 log.Trace("[Worker] Health Check")

Callers 1

StartWorkerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected