(c *gin.Context)
| 469 | } |
| 470 | |
| 471 | func UpdateAllChannelsBalance(c *gin.Context) { |
| 472 | // TODO: make it async |
| 473 | err := updateAllChannelsBalance() |
| 474 | if err != nil { |
| 475 | common.ApiError(c, err) |
| 476 | return |
| 477 | } |
| 478 | c.JSON(http.StatusOK, gin.H{ |
| 479 | "success": true, |
| 480 | "message": "", |
| 481 | }) |
| 482 | return |
| 483 | } |
| 484 | |
| 485 | func AutomaticallyUpdateChannels(frequency int) { |
| 486 | for { |
nothing calls this directly
no test coverage detected