File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -110,14 +110,13 @@ type uniFetcher interface {
110110// something to it, returning a type T and an error.
111111type uniAction [T any ] func (BaseBackend ) (T , error )
112112
113- // withBaseUni is a helper function for performing some action on/with a base
114- // universe with a generic return value .
115- func withBaseUni [T any ](fetcher uniFetcher , id Identifier ,
113+ // withUni is a helper function that performs an action on a universe instance,
114+ // returning a generic result .
115+ func withUni [T any ](fetcher uniFetcher , id Identifier ,
116116 f uniAction [T ]) (T , error ) {
117117
118- baseUni := fetcher .fetchUniverse (id )
119-
120- return f (baseUni )
118+ uni := fetcher .fetchUniverse (id )
119+ return f (uni )
121120}
122121
123122// RootNode returns the root node of the base universe corresponding to the
@@ -705,7 +704,7 @@ func (a *Archive) MintingLeaves(ctx context.Context,
705704 log .Debugf ("Retrieving all leaves for Universe: id=%v" ,
706705 id .StringForLog ())
707706
708- return withBaseUni (
707+ return withUni (
709708 a , id , func (baseUni BaseBackend ) ([]Leaf , error ) {
710709 return baseUni .MintingLeaves (ctx )
711710 },
You can’t perform that action at this time.
0 commit comments