Skip to content

Commit

Permalink
updated dep
Browse files Browse the repository at this point in the history
  • Loading branch information
adranwit committed Aug 13, 2024
1 parent f341b5f commit b22f312
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions service/session/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,11 @@ func (s *Session) SetState(ctx context.Context, parameters state.Parameters, aSt
wg := sync.WaitGroup{}
for i, _ := range group { //populate non data view parameters first
parameter := group[i]
if parameter.Scope != opts.scope {
if parameter.Scope != opts.scope || (opts.scope == "" && parameter.Scope == "async") {
continue
}
wg.Add(1)
//go
s.populateParameterInBackground(ctx, parameter, aState, opts, err, &wg)
go s.populateParameterInBackground(ctx, parameter, aState, opts, err, &wg)
}
wg.Wait()
if err.HasError() {
Expand Down Expand Up @@ -630,7 +629,7 @@ func (s *Session) LoadState(parameters state.Parameters, aState interface{}) err
inputState := sType.WithValue(aState)
ptr := xunsafe.AsPointer(aState)
for _, parameter := range parameters {
if parameter.Scope != "" {
if parameter.Scope != "" || parameter.Scope == "async" {
continue
}
selector, _ := inputState.Selector(parameter.Name)
Expand Down

0 comments on commit b22f312

Please sign in to comment.