From baef0636ddf80cce645318c36452924598f36b66 Mon Sep 17 00:00:00 2001 From: Andrew Plaza Date: Mon, 20 May 2024 17:23:35 -0400 Subject: [PATCH] make sure not to use nil for validation service --- pkg/server/server.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/server/server.go b/pkg/server/server.go index 5f7af986..5ae49bd5 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -246,11 +246,10 @@ func New(ctx context.Context, log *zap.Logger, options Options) (*Server, error) var MLSValidator mlsvalidate.MLSValidationService if options.MLSValidation.GRPCAddress != "" { - MLSValidator, err = mlsvalidate.NewMlsValidationService(ctx, options.MLSValidation, nil) + MLSValidator, err = mlsvalidate.NewMlsValidationService(ctx, options.MLSValidation, MLSStore) if err != nil { return nil, errors.Wrap(err, "creating mls validation service") } - } // Initialize gRPC server.