()
| 40 | } |
| 41 | |
| 42 | func (this *Queue) Start() { |
| 43 | for ip := range this.c { |
| 44 | err := this.Process(ip) |
| 45 | if err != nil { |
| 46 | // 不需要上报错误 |
| 47 | if Tea.IsTesting() { |
| 48 | remotelogs.Debug("SharedParseQueue", err.Error()) |
| 49 | } |
| 50 | continue |
| 51 | } |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | // Push 将IP加入到处理队列 |
| 56 | func (this *Queue) Push(ip string) { |