MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / UpdateAllChannelsBalance

Function UpdateAllChannelsBalance

controller/channel-billing.go:471–483  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

469}
470
471func 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
485func AutomaticallyUpdateChannels(frequency int) {
486 for {

Callers

nothing calls this directly

Calls 2

ApiErrorFunction · 0.92
updateAllChannelsBalanceFunction · 0.70

Tested by

no test coverage detected