satellite/orders: set the expirationDate in CreatePutRepairOrderLimits
In the past ExpirationDate was available inside CreatePutRepairOrderLimits but this was removed since the metabase segment was missing the ExpiresAt field. Now ExpiresAt field is available in the metabase segment and can be set correctly while executing NewSignerRepairPut. Change-Id: I068c07492ab27bde2c44477bbd32c5872edd024a
This commit is contained in:
parent
a2b30e42a3
commit
d73b9fff9a
@ -418,7 +418,11 @@ func (service *Service) CreatePutRepairOrderLimits(ctx context.Context, bucket m
|
||||
|
||||
limits := make([]*pb.AddressedOrderLimit, totalPieces)
|
||||
|
||||
expirationDate := time.Time{} // TODO previously 'pointer.ExpirationDate'
|
||||
expirationDate := time.Time{}
|
||||
if segment.ExpiresAt != nil {
|
||||
expirationDate = *segment.ExpiresAt
|
||||
}
|
||||
|
||||
signer, err := NewSignerRepairPut(service, segment.RootPieceID, expirationDate, time.Now(), pieceSize, bucket)
|
||||
if err != nil {
|
||||
return nil, storj.PiecePrivateKey{}, Error.Wrap(err)
|
||||
|
Loading…
Reference in New Issue
Block a user