Skip to content

Commit

Permalink
Merge pull request #96 from moshe010/fix-doc
Browse files Browse the repository at this point in the history
fix cdi doc missing SpecDB()
  • Loading branch information
klihub authored Nov 11, 2022
2 parents 845d598 + 55cf6e8 commit 80359a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/cdi/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
// return fmt.Errorf("failed to generate Spec name: %w", err)
// }
//
// return registry.WriteSpec(spec, specName)
// return registry.SpecDB().WriteSpec(spec, specName)
// }
//
// Similary, generating and later cleaning up transient Spec files can be
Expand Down Expand Up @@ -241,15 +241,15 @@
// return fmt.Errorf("failed to generate Spec name: %w", err)
// }
//
// return registry.WriteSpec(spec, specName)
// return registry.SpecDB().WriteSpec(spec, specName)
// }
//
// func removeTransientSpec(ctr Container) error {
// registry := cdi.GetRegistry()
// transientID := getSomeSufficientlyUniqueIDForContainer(ctr)
// specName := cdi.GenerateNameForTransientSpec(vendor, class, transientID)
//
// return registry.RemoveSpec(specName)
// return registry.SpecDB().RemoveSpec(specName)
// }
//
// CDI Spec Validation
Expand Down

0 comments on commit 80359a1

Please sign in to comment.