fix/355-increase-tree-service-client-cache-size #359
5 changed files with 5 additions and 21 deletions
|
@ -91,11 +91,7 @@ func initializeSideChainCmd(cmd *cobra.Command, _ []string) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd.Println("Stage 7: set addresses in NNS.")
|
cmd.Println("Stage 7: set addresses in NNS.")
|
||||||
if err := initCtx.setNNS(); err != nil {
|
return initCtx.setNNS()
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *initializeContext) close() {
|
func (c *initializeContext) close() {
|
||||||
|
|
|
@ -159,10 +159,7 @@ func (a *assembler) assembleObjectByChildrenList(ctx context.Context, childrenID
|
||||||
if err := a.assemblePayloadInReverse(ctx, writer, childrenIDs[len(childrenIDs)-1]); err != nil {
|
if err := a.assemblePayloadInReverse(ctx, writer, childrenIDs[len(childrenIDs)-1]); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := writer.WriteChunk(ctx, a.parentObject.Payload()); err != nil {
|
return writer.WriteChunk(ctx, a.parentObject.Payload())
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *assembler) assemleObjectByPreviousIDInReverse(ctx context.Context, prevID oid.ID, writer ObjectWriter) error {
|
func (a *assembler) assemleObjectByPreviousIDInReverse(ctx context.Context, prevID oid.ID, writer ObjectWriter) error {
|
||||||
|
|
|
@ -74,10 +74,7 @@ func (f *getRequestForwarder) verifyResponse(resp *objectV2.GetResponse, pubkey
|
||||||
return fmt.Errorf("response verification failed: %w", err)
|
return fmt.Errorf("response verification failed: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := checkStatus(resp.GetMetaHeader().GetStatus()); err != nil {
|
return checkStatus(resp.GetMetaHeader().GetStatus())
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *getRequestForwarder) writeHeader(ctx context.Context, v *objectV2.GetObjectPartInit) error {
|
func (f *getRequestForwarder) writeHeader(ctx context.Context, v *objectV2.GetObjectPartInit) error {
|
||||||
|
|
|
@ -76,10 +76,7 @@ func (f *getRangeRequestForwarder) verifyResponse(resp *objectV2.GetRangeRespons
|
||||||
return fmt.Errorf("could not verify %T: %w", resp, err)
|
return fmt.Errorf("could not verify %T: %w", resp, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := checkStatus(resp.GetMetaHeader().GetStatus()); err != nil {
|
return checkStatus(resp.GetMetaHeader().GetStatus())
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *getRangeRequestForwarder) openStream(ctx context.Context, addr network.Address, c client.MultiAddressClient) (*rpc.ObjectRangeResponseReader, error) {
|
func (f *getRangeRequestForwarder) openStream(ctx context.Context, addr network.Address, c client.MultiAddressClient) (*rpc.ObjectRangeResponseReader, error) {
|
||||||
|
|
|
@ -176,8 +176,5 @@ func (f *headRequestForwarder) verifyResponse(headResp *objectV2.HeadResponse, p
|
||||||
return fmt.Errorf("response verification failed: %w", err)
|
return fmt.Errorf("response verification failed: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := checkStatus(f.Response.GetMetaHeader().GetStatus()); err != nil {
|
return checkStatus(f.Response.GetMetaHeader().GetStatus())
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue