mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-31 03:18:43 -06:00
Make sure Chunks includes type.Refs and the TypeRef
Chunks shold return the futures for types.Ref values. For typed values that have a TypeRef which has a package ref, also include that.
This commit is contained in:
@@ -93,8 +93,10 @@ func (s {{.Name}}) Ref() ref.Ref {
|
||||
return s.m.Ref()
|
||||
}
|
||||
|
||||
func (s {{.Name}}) Chunks() []types.Future {
|
||||
return s.m.Chunks()
|
||||
func (s {{.Name}}) Chunks() (futures []types.Future) {
|
||||
futures = append(futures, s.TypeRef().Chunks()...)
|
||||
futures = append(futures, s.m.Chunks()...)
|
||||
return
|
||||
}
|
||||
|
||||
{{$name := .Name}}
|
||||
|
||||
Reference in New Issue
Block a user