(timeout int)
| 237 | } |
| 238 | |
| 239 | func loadRecoverTimeout(timeout int) time.Duration { |
| 240 | switch timeout { |
| 241 | case -1: |
| 242 | return 0 |
| 243 | case 0: |
| 244 | return 3 * time.Hour |
| 245 | default: |
| 246 | return time.Duration(timeout) * time.Second |
| 247 | } |
| 248 | } |
| 249 | |
| 250 | func isImportRecover(req dto.CommonRecover) bool { |
| 251 | return req.BackupRecordID == 0 |
no outgoing calls
no test coverage detected