Close closes the River
()
| 309 | |
| 310 | // Close closes the River |
| 311 | func (r *River) Close() { |
| 312 | log.Infof("closing river") |
| 313 | |
| 314 | r.cancel() |
| 315 | |
| 316 | r.canal.Close() |
| 317 | |
| 318 | r.master.Close() |
| 319 | |
| 320 | r.wg.Wait() |
| 321 | } |
| 322 | |
| 323 | func isValidTables(tables []string) bool { |
| 324 | if len(tables) > 1 { |
no outgoing calls