Skip to content

Commit

Permalink
Make private again
Browse files Browse the repository at this point in the history
  • Loading branch information
neekolas committed Oct 24, 2023
1 parent 17ea986 commit b8b8b4d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/api/message/v3/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
}

Expand All @@ -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
}
Expand All @@ -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)
}
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit b8b8b4d

Please sign in to comment.