Skip to content

Commit

Permalink
coll: add cs.RewriteMaps deprecation notice
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Beckers <timo@isovalent.com>
  • Loading branch information
ti-mo committed May 3, 2022
1 parent 9f3cdaa commit 6c96db1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions collection.go
Expand Up @@ -75,6 +75,9 @@ func (cs *CollectionSpec) Copy() *CollectionSpec {
// when calling NewCollection. Any named maps are removed from CollectionSpec.Maps.
//
// Returns an error if a named map isn't used in at least one program.
//
// Deprecated: Pass CollectionOptions.MapReplacements when loading the Collection
// instead.
func (cs *CollectionSpec) RewriteMaps(maps map[string]*Map) error {
for symbol, m := range maps {
// have we seen a program that uses this symbol / map
Expand Down

0 comments on commit 6c96db1

Please sign in to comment.