Skip to content

Commit

Permalink
satellite/metainfo: add missing error check
Browse files Browse the repository at this point in the history
Change-Id: I4043633505a3eaee8304f71f5ddea17de2b3d10f
  • Loading branch information
mniewrzal authored and Fadila82 committed Jun 2, 2020
1 parent 2b3545c commit e8c4010
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions satellite/metainfo/metainfo.go
Expand Up @@ -1957,6 +1957,9 @@ func (endpoint *Endpoint) DownloadSegment(ctx context.Context, req *pb.SegmentDo
}

segmentID, err := endpoint.packSegmentID(ctx, &pb.SatSegmentID{})
if err != nil {
return nil, rpcstatus.Error(rpcstatus.Internal, err.Error())
}

var encryptedKeyNonce storj.Nonce
var encryptedKey []byte
Expand Down

0 comments on commit e8c4010

Please sign in to comment.