(frequency int)
| 425 | } |
| 426 | |
| 427 | func AutomaticallyUpdateChannels(frequency int) { |
| 428 | for { |
| 429 | time.Sleep(time.Duration(frequency) * time.Minute) |
| 430 | logger.SysLog("updating all channels") |
| 431 | _ = updateAllChannelsBalance() |
| 432 | logger.SysLog("channels update done") |
| 433 | } |
| 434 | } |
nothing calls this directly
no test coverage detected