solver: include cachemap index in flightcontrol.
Signed-off-by: Erik Sipsma <erik@sipsma.dev>master
parent
23ec51611f
commit
808091a4e1
|
@ -715,7 +715,7 @@ func (s *sharedOp) CacheMap(ctx context.Context, index int) (resp *cacheMapResp,
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
res, err := s.g.Do(ctx, "cachemap", func(ctx context.Context) (ret interface{}, retErr error) {
|
||||
res, err := s.g.Do(ctx, fmt.Sprintf("cachemap-%d", index), func(ctx context.Context) (ret interface{}, retErr error) {
|
||||
if s.cacheRes != nil && s.cacheDone || index < len(s.cacheRes) {
|
||||
return s.cacheRes, nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue