mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-13 11:19:49 -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:
@@ -97,8 +97,10 @@ func (s D) Ref() ref.Ref {
|
||||
return s.m.Ref()
|
||||
}
|
||||
|
||||
func (s D) Chunks() []types.Future {
|
||||
return s.m.Chunks()
|
||||
func (s D) Chunks() (futures []types.Future) {
|
||||
futures = append(futures, s.TypeRef().Chunks()...)
|
||||
futures = append(futures, s.m.Chunks()...)
|
||||
return
|
||||
}
|
||||
|
||||
func (s D) StructField() sha1_f1a192312c01fb47e8e329471242e475eb7001a4.S {
|
||||
|
||||
@@ -107,8 +107,10 @@ func (s S) Ref() ref.Ref {
|
||||
return s.m.Ref()
|
||||
}
|
||||
|
||||
func (s S) Chunks() []types.Future {
|
||||
return s.m.Chunks()
|
||||
func (s S) Chunks() (futures []types.Future) {
|
||||
futures = append(futures, s.TypeRef().Chunks()...)
|
||||
futures = append(futures, s.m.Chunks()...)
|
||||
return
|
||||
}
|
||||
|
||||
func (s S) S() string {
|
||||
|
||||
Reference in New Issue
Block a user