()
| 66 | } |
| 67 | |
| 68 | func (this *ModuleWorkerPool) Close() { |
| 69 | slog.LogInfo("worker_pool", "worker_pool [%v] will close.", this.name) |
| 70 | for _, v := range this.modules { |
| 71 | v.(ModuleWoker).Close() |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | func (this *ModuleWorkerPool) RegisterRpcHandler(name string, f RpcHandler) { |
| 76 | for _, v := range this.modules { |