lang: Plumb through a context into unification
If we have a long type unification, we might want to cancel it early. This also helps us visualize where we want context to be seen.
This commit is contained in:
@@ -276,7 +276,7 @@ func (obj *GAPI) Cli(info *gapi.Info) (*gapi.Deploy, error) {
|
||||
Debug: debug,
|
||||
Logf: unificationLogf,
|
||||
}
|
||||
unifyErr := unifier.Unify()
|
||||
unifyErr := unifier.Unify(context.TODO())
|
||||
delta := time.Since(startTime)
|
||||
formatted := delta.String()
|
||||
if delta.Milliseconds() > 1000 { // 1 second
|
||||
|
||||
Reference in New Issue
Block a user