@@ -126,7 +126,7 @@ func (s *Service) actDecryptionHandler() func(h http.Handler) http.Handler {
126126 cache = * headers .Cache
127127 }
128128 ctx := r .Context ()
129- ls := loadsave .NewReadonly (s .storer .Download (cache ))
129+ ls := loadsave .NewReadonly (s .storer .Download (cache ), redundancy . DefaultLevel )
130130 reference , err := s .accesscontrol .DownloadHandler (ctx , ls , paths .Address , headers .Publisher , * headers .HistoryAddress , timestamp )
131131 if err != nil {
132132 logger .Debug ("access control download failed" , "error" , err )
@@ -160,7 +160,7 @@ func (s *Service) actEncryptionHandler(
160160 historyRootHash swarm.Address ,
161161) (swarm.Address , error ) {
162162 publisherPublicKey := & s .publicKey
163- ls := loadsave .New (s .storer .Download (true ), s .storer .Cache (), requestPipelineFactory (ctx , putter , false , redundancy .NONE ))
163+ ls := loadsave .New (s .storer .Download (true ), s .storer .Cache (), requestPipelineFactory (ctx , putter , false , redundancy .NONE ), redundancy . DefaultLevel )
164164 storageReference , historyReference , encryptedReference , err := s .accesscontrol .UploadHandler (ctx , ls , reference , publisherPublicKey , historyRootHash )
165165 if err != nil {
166166 return swarm .ZeroAddress , err
@@ -206,7 +206,7 @@ func (s *Service) actListGranteesHandler(w http.ResponseWriter, r *http.Request)
206206 cache = * headers .Cache
207207 }
208208 publisher := & s .publicKey
209- ls := loadsave .NewReadonly (s .storer .Download (cache ))
209+ ls := loadsave .NewReadonly (s .storer .Download (cache ), redundancy . DefaultLevel )
210210 grantees , err := s .accesscontrol .Get (r .Context (), ls , publisher , paths .GranteesAddress )
211211 if err != nil {
212212 logger .Debug ("could not get grantees" , "error" , err )
@@ -346,8 +346,8 @@ func (s *Service) actGrantRevokeHandler(w http.ResponseWriter, r *http.Request)
346346
347347 granteeref := paths .GranteesAddress
348348 publisher := & s .publicKey
349- ls := loadsave .New (s .storer .Download (true ), s .storer .Cache (), requestPipelineFactory (ctx , putter , false , redundancy .NONE ))
350- gls := loadsave .New (s .storer .Download (true ), s .storer .Cache (), requestPipelineFactory (ctx , putter , granteeListEncrypt , redundancy .NONE ))
349+ ls := loadsave .New (s .storer .Download (true ), s .storer .Cache (), requestPipelineFactory (ctx , putter , false , redundancy .NONE ), redundancy . DefaultLevel )
350+ gls := loadsave .New (s .storer .Download (true ), s .storer .Cache (), requestPipelineFactory (ctx , putter , granteeListEncrypt , redundancy .NONE ), redundancy . DefaultLevel )
351351 granteeref , encryptedglref , historyref , actref , err := s .accesscontrol .UpdateHandler (ctx , ls , gls , granteeref , historyAddress , publisher , grantees .Addlist , grantees .Revokelist )
352352 if err != nil {
353353 logger .Debug ("failed to update grantee list" , "error" , err )
@@ -500,8 +500,8 @@ func (s *Service) actCreateGranteesHandler(w http.ResponseWriter, r *http.Reques
500500 }
501501
502502 publisher := & s .publicKey
503- ls := loadsave .New (s .storer .Download (true ), s .storer .Cache (), requestPipelineFactory (ctx , putter , false , redundancy .NONE ))
504- gls := loadsave .New (s .storer .Download (true ), s .storer .Cache (), requestPipelineFactory (ctx , putter , granteeListEncrypt , redundancy .NONE ))
503+ ls := loadsave .New (s .storer .Download (true ), s .storer .Cache (), requestPipelineFactory (ctx , putter , false , redundancy .NONE ), redundancy . DefaultLevel )
504+ gls := loadsave .New (s .storer .Download (true ), s .storer .Cache (), requestPipelineFactory (ctx , putter , granteeListEncrypt , redundancy .NONE ), redundancy . DefaultLevel )
505505 granteeref , encryptedglref , historyref , actref , err := s .accesscontrol .UpdateHandler (ctx , ls , gls , swarm .ZeroAddress , historyAddress , publisher , list , nil )
506506 if err != nil {
507507 logger .Debug ("failed to create grantee list" , "error" , err )
0 commit comments