MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / SyncLocalBalances

Method SyncLocalBalances

module/ai-balance/iml.go:46–52  ·  view source on GitHub ↗
(ctx context.Context, address string)

Source from the content-addressed store, hash-verified

44}
45
46func (i *imlBalanceModule) SyncLocalBalances(ctx context.Context, address string) error {
47 releases, err := i.getLocalBalances(ctx, address)
48 if err != nil {
49 return err
50 }
51 return i.syncGateway(ctx, cluster.DefaultClusterID, releases, true)
52}
53
54func (i *imlBalanceModule) Create(ctx context.Context, input *ai_balance_dto.Create) error {
55 has, err := i.balanceService.Exist(ctx, input.Provider, input.Model)

Callers

nothing calls this directly

Calls 2

getLocalBalancesMethod · 0.95
syncGatewayMethod · 0.95

Tested by

no test coverage detected