Skip to content

Commit 5b28bb6

Browse files
committed
Delete sa.GetMaxExpiration
1 parent b999183 commit 5b28bb6

7 files changed

Lines changed: 729 additions & 1075 deletions

File tree

crl/updater/updater_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,6 @@ func (f *fakeSAC) GetRevokedCertsByShard(ctx context.Context, req *sapb.GetRevok
6464
return &f.revokedCerts, nil
6565
}
6666

67-
func (f *fakeSAC) GetMaxExpiration(_ context.Context, req *emptypb.Empty, _ ...grpc.CallOption) (*timestamppb.Timestamp, error) {
68-
return timestamppb.New(f.maxNotAfter), nil
69-
}
70-
7167
func (f *fakeSAC) LeaseCRLShard(_ context.Context, req *sapb.LeaseCRLShardRequest, _ ...grpc.CallOption) (*sapb.LeaseCRLShardResponse, error) {
7268
if f.leaseError != nil {
7369
return nil, f.leaseError

mocks/sa.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,6 @@ func (sa *StorageAuthorityReadOnly) GetRevokedCertsByShard(ctx context.Context,
267267
return &ServerStreamClient[corepb.CRLEntry]{}, nil
268268
}
269269

270-
// GetMaxExpiration is a mock
271-
func (sa *StorageAuthorityReadOnly) GetMaxExpiration(_ context.Context, req *emptypb.Empty, _ ...grpc.CallOption) (*timestamppb.Timestamp, error) {
272-
return nil, nil
273-
}
274-
275270
// AddRateLimitOverride is a mock
276271
func (sa *StorageAuthority) AddRateLimitOverride(_ context.Context, req *sapb.AddRateLimitOverrideRequest, _ ...grpc.CallOption) (*sapb.AddRateLimitOverrideResponse, error) {
277272
return nil, nil

0 commit comments

Comments
 (0)