Skip to content

Commit

Permalink
Capitalize more things
Browse files Browse the repository at this point in the history
  • Loading branch information
neekolas committed Oct 24, 2023
1 parent 08266da commit 0ba5291
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/api/message/v3/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (m *mockedMlsValidationService) mockValidateGroupMessages(groupId string) *

func newTestService(t *testing.T, ctx context.Context) (*Service, *bun.DB, *mockedMlsValidationService, func()) {
log := test.NewLog(t)
mlsDb, _, mlsDbCleanup := test.NewMlsDB(t)
mlsDb, _, mlsDbCleanup := test.NewMLSDB(t)
mlsStore, err := mlsstore.New(ctx, mlsstore.Config{
Log: log,
DB: mlsDb,
Expand Down
2 changes: 1 addition & 1 deletion pkg/mlsstore/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

func NewTestStore(t *testing.T) (*Store, func()) {
log := test.NewLog(t)
db, _, dbCleanup := test.NewMlsDB(t)
db, _, dbCleanup := test.NewMLSDB(t)
ctx := context.Background()
c := Config{
Log: log,
Expand Down
4 changes: 2 additions & 2 deletions pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ 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)
if options.MLSValidation.GRPCAddress != "" {
MLSValidator, err = mlsvalidate.NewMlsValidationService(ctx, options.MLSValidation)
if err != nil {
return nil, errors.Wrap(err, "creating mls validation service")
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/testing/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func NewAuthzDB(t *testing.T) (*bun.DB, string, func()) {
return bunDB, dsn, cleanup
}

func NewMlsDB(t *testing.T) (*bun.DB, string, func()) {
func NewMLSDB(t *testing.T) (*bun.DB, string, func()) {
db, dsn, cleanup := NewDB(t)
bunDB := bun.NewDB(db, pgdialect.New())

Expand Down

0 comments on commit 0ba5291

Please sign in to comment.