env: no pointer to mutex

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2021-01-13 14:28:32 -08:00
parent 338b3d4b46
commit 968341fb74

View File

@ -105,7 +105,7 @@ type EnvWalkFunc func(*Component, Fillable) error
func (env *Env) Walk(ctx context.Context, fn EnvWalkFunc) (*Value, error) { func (env *Env) Walk(ctx context.Context, fn EnvWalkFunc) (*Value, error) {
debugf("Env.Walk") debugf("Env.Walk")
defer debugf("COMPLETE: Env.Walk") defer debugf("COMPLETE: Env.Walk")
l := &sync.Mutex{} l := sync.Mutex{}
// Cueflow cue instance // Cueflow cue instance
// FIXME: make this cleaner in *Value by keeping intermediary instances // FIXME: make this cleaner in *Value by keeping intermediary instances
flowInst, err := env.base.CueInst().Fill(env.input.CueInst().Value()) flowInst, err := env.base.CueInst().Fill(env.input.CueInst().Value())