lang: core, funcs: Rename things for consistency

Seems we had different patterns going on. This makes those all
consistent now.
This commit is contained in:
James Shubin
2025-03-26 19:06:20 -04:00
parent 30aca74089
commit 8ff187b4e9
8 changed files with 41 additions and 42 deletions

View File

@@ -155,12 +155,12 @@ func (obj *PoolFunc) Stream(ctx context.Context) error {
// Call this function with the input args and return the value if it is possible
// to do so at this time.
func (obj *PoolFunc) Call(ctx context.Context, input []types.Value) (types.Value, error) {
func (obj *PoolFunc) Call(ctx context.Context, args []types.Value) (types.Value, error) {
// Validation of these inputs happens in the Local API which does it.
namespace := input[0].Str()
uid := input[1].Str()
namespace := args[0].Str()
uid := args[1].Str()
// TODO: pass in config
//config := input[2].???()
//config := args[2].???()
result, err := obj.init.Local.Pool(ctx, namespace, uid, nil)
if err != nil {