From b8b8b4d9bfe8c7f999cfaad3949821ed16f08532 Mon Sep 17 00:00:00 2001 From: Nicholas Molnar <65710+neekolas@users.noreply.github.com> Date: Tue, 24 Oct 2023 09:05:21 -0700 Subject: [PATCH] Make private again --- pkg/api/message/v3/service.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/api/message/v3/service.go b/pkg/api/message/v3/service.go index 1cb45038..9ea61de4 100644 --- a/pkg/api/message/v3/service.go +++ b/pkg/api/message/v3/service.go @@ -20,7 +20,7 @@ type Service struct { log *zap.Logger waku *wakunode.WakuNode messageStore *store.Store - MLSStore mlsstore.MlsStore + mlsStore mlsstore.MlsStore validationService mlsvalidate.MLSValidationService ctx context.Context @@ -32,7 +32,7 @@ func NewService(node *wakunode.WakuNode, logger *zap.Logger, messageStore *store log: logger.Named("message/v3"), waku: node, messageStore: messageStore, - MLSStore: mlsStore, + mlsStore: mlsStore, validationService: validationService, } @@ -59,7 +59,7 @@ func (s *Service) RegisterInstallation(ctx context.Context, req *proto.RegisterI installationId := results[0].InstallationId walletAddress := results[0].WalletAddress - err = s.MLSStore.CreateInstallation(ctx, installationId, walletAddress, req.LastResortKeyPackage.KeyPackageTlsSerialized) + err = s.mlsStore.CreateInstallation(ctx, installationId, walletAddress, req.LastResortKeyPackage.KeyPackageTlsSerialized) if err != nil { return nil, err } @@ -71,7 +71,7 @@ func (s *Service) RegisterInstallation(ctx context.Context, req *proto.RegisterI func (s *Service) ConsumeKeyPackages(ctx context.Context, req *proto.ConsumeKeyPackagesRequest) (*proto.ConsumeKeyPackagesResponse, error) { ids := req.InstallationIds - keyPackages, err := s.MLSStore.ConsumeKeyPackages(ctx, ids) + keyPackages, err := s.mlsStore.ConsumeKeyPackages(ctx, ids) if err != nil { return nil, status.Errorf(codes.Internal, "failed to consume key packages: %s", err) } @@ -122,7 +122,7 @@ func (s *Service) UploadKeyPackages(ctx context.Context, req *proto.UploadKeyPac kp := mlsstore.NewKeyPackage(validationResult.InstallationId, keyPackageBytes[i], false) keyPackageModels[i] = kp } - err = s.MLSStore.InsertKeyPackages(ctx, keyPackageModels) + err = s.mlsStore.InsertKeyPackages(ctx, keyPackageModels) if err != nil { return nil, status.Errorf(codes.Internal, "failed to insert key packages: %s", err) }