[#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:
parent
9840936a4f
commit
8a47f9ba12
2 changed files with 0 additions and 4 deletions
|
@ -25,9 +25,6 @@ type Service struct {
|
||||||
containerCache containerCache
|
containerCache containerCache
|
||||||
}
|
}
|
||||||
|
|
||||||
// MaxGetSubTreeDepth represents maximum allowed traversal depth in GetSubTree RPC.
|
|
||||||
const MaxGetSubTreeDepth = 10
|
|
||||||
|
|
||||||
var _ TreeServiceServer = (*Service)(nil)
|
var _ TreeServiceServer = (*Service)(nil)
|
||||||
|
|
||||||
// New creates new tree service instance.
|
// New creates new tree service instance.
|
||||||
|
|
|
@ -67,7 +67,6 @@ func (s *Service) synchronizeSingle(ctx context.Context, cid cid.ID, treeID stri
|
||||||
ContainerId: rawCID,
|
ContainerId: rawCID,
|
||||||
TreeId: treeID,
|
TreeId: treeID,
|
||||||
Height: newHeight,
|
Height: newHeight,
|
||||||
Count: MaxGetSubTreeDepth,
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
if err := signMessage(req, s.key); err != nil {
|
if err := signMessage(req, s.key); err != nil {
|
||||||
|
|
Loading…
Reference in a new issue