Rename opt to avoid stutter

Signed-off-by: Derek McGowan <derek@mcg.dev>
This commit is contained in:
Derek McGowan
2023-11-01 10:39:54 -07:00
parent 261e01c2ac
commit b85df264ef
5 changed files with 14 additions and 14 deletions

View File

@@ -183,7 +183,7 @@ func WithSandboxStore(client sandbox.Store) ServicesOpt {
// WithInMemoryServices is suitable for cases when there is need to use containerd's client from
// another (in-memory) containerd plugin (such as CRI).
func WithInMemoryServices(ic *plugin.InitContext) ClientOpt {
func WithInMemoryServices(ic *plugin.InitContext) Opt {
return func(c *clientOpts) error {
var opts []ServicesOpt
for t, fn := range map[plugin.Type]func(interface{}) ServicesOpt{