(serverId int64, ip string)
| 144 | } |
| 145 | |
| 146 | func (this *DAUManager) AddIP(serverId int64, ip string) { |
| 147 | select { |
| 148 | case this.ipChan <- IPInfo{ |
| 149 | IP: ip, |
| 150 | ServerId: serverId, |
| 151 | }: |
| 152 | default: |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | func (this *DAUManager) processIP(serverId int64, ip string) error { |
| 157 | if !this.isReady { |
no outgoing calls