File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -77,10 +77,6 @@ func (s *Service) GetRange(ctx context.Context, prm RangePrm) error {
7777 ecRules , nodeLists [len (repRules ):], prm .rng .GetOffset (), prm .rng .GetLength ())
7878}
7979
80- func (s * Service ) getRange (ctx context.Context , prm RangePrm , opts ... execOption ) error {
81- return s .get (ctx , prm .commonPrm , append (opts , withPayloadRange (prm .rng ))... ).err
82- }
83-
8480func (s * Service ) GetRangeHash (ctx context.Context , prm RangeHashPrm ) (* RangeHashRes , error ) {
8581 hashes := make ([][]byte , 0 , len (prm .rngs ))
8682
@@ -101,7 +97,7 @@ func (s *Service) GetRangeHash(ctx context.Context, prm RangeHashPrm) (*RangeHas
10197 hash : util .NewSaltingWriter (h , prm .salt ),
10298 })
10399
104- if err := s .getRange (ctx , rngPrm , withHash (& prm )) ; err != nil {
100+ if err := s .get (ctx , rngPrm . commonPrm , withHash (& prm ), withPayloadRange ( rngPrm . rng )). err ; err != nil {
105101 return nil , err
106102 }
107103
You can’t perform that action at this time.
0 commit comments