(plugin string, id int, nReducer int, storeInRAM bool)
| 107 | } |
| 108 | |
| 109 | func startWorker(plugin string, id int, nReducer int, storeInRAM bool) { |
| 110 | pluginFile, _ := filepath.Abs(plugin) |
| 111 | |
| 112 | var wg sync.WaitGroup |
| 113 | worker.Init(MasterIP) |
| 114 | |
| 115 | // Start Worker |
| 116 | wg.Add(1) |
| 117 | go func() { |
| 118 | worker.StartWorker(pluginFile, nReducer, fmt.Sprintf(":1000%v", id+1), storeInRAM) |
| 119 | wg.Done() |
| 120 | }() |
| 121 | |
| 122 | wg.Wait() |
| 123 | } |
no test coverage detected