[#1753] services/tree: Remove MaxGetSubTreeCount constant

It was used only in `GetOpLog` and ignored on the server side.

Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
Evgenii Stratonikov 2022-09-07 10:43:39 +03:00 committed by fyrchik
parent 9840936a4f
commit 8a47f9ba12
2 changed files with 0 additions and 4 deletions

View file

@ -25,9 +25,6 @@ type Service struct {
containerCache containerCache
}
// MaxGetSubTreeDepth represents maximum allowed traversal depth in GetSubTree RPC.
const MaxGetSubTreeDepth = 10
var _ TreeServiceServer = (*Service)(nil)
// New creates new tree service instance.

View file

@ -67,7 +67,6 @@ func (s *Service) synchronizeSingle(ctx context.Context, cid cid.ID, treeID stri
ContainerId: rawCID,
TreeId: treeID,
Height: newHeight,
Count: MaxGetSubTreeDepth,
},
}
if err := signMessage(req, s.key); err != nil {