From 8e648ad0fe61e2da270deb4ab9c3947aaa77e030 Mon Sep 17 00:00:00 2001 From: Steven Hartland Date: Fri, 8 Nov 2024 23:26:55 +0000 Subject: [PATCH] chore(cockroachdb): remove customizer Remove the now unused customizer. --- modules/cockroachdb/cockroachdb.go | 5 ----- modules/cockroachdb/options.go | 5 ----- 2 files changed, 10 deletions(-) diff --git a/modules/cockroachdb/cockroachdb.go b/modules/cockroachdb/cockroachdb.go index e3948fe95d..98f2e00196 100644 --- a/modules/cockroachdb/cockroachdb.go +++ b/modules/cockroachdb/cockroachdb.go @@ -288,11 +288,6 @@ func Run(ctx context.Context, img string, opts ...testcontainers.ContainerCustom } for _, opt := range opts { - if fn, ok := opt.(customizer); ok { - if err := fn.customize(ctr); err != nil { - return nil, fmt.Errorf("customize container: %w", err) - } - } if err := opt.Customize(&req); err != nil { return nil, fmt.Errorf("customize request: %w", err) } diff --git a/modules/cockroachdb/options.go b/modules/cockroachdb/options.go index 09bc4b52b3..738036d188 100644 --- a/modules/cockroachdb/options.go +++ b/modules/cockroachdb/options.go @@ -11,11 +11,6 @@ import ( // errInsecureWithPassword is returned when trying to use insecure mode with a password. var errInsecureWithPassword = errors.New("insecure mode cannot be used with a password") -// customizer is an interface for customizing a CockroachDB container. -type customizer interface { - customize(*CockroachDBContainer) error -} - // WithDatabase sets the name of the database to create and use. // This will be converted to lowercase as CockroachDB forces the database to be lowercase. // The database creation will be skipped if data exists in the `/cockroach/cockroach-data` directory within the container.