Skip to content

Commit

Permalink
make sure not to use nil for validation service
Browse files Browse the repository at this point in the history
  • Loading branch information
insipx committed May 20, 2024
1 parent d3a29ff commit baef063
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit baef063

Please sign in to comment.