mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-08 05:57:03 +09:00
Add logs for tree len
This commit is contained in:
parent
68a7ad4738
commit
6dac7dcda4
1 changed files with 1 additions and 0 deletions
|
@ -147,6 +147,7 @@ func (s *syncHandler) HandleStreamRequest(ctx context.Context, rq syncdeps.Reque
|
|||
}
|
||||
s.tree.Lock()
|
||||
curHeads := s.tree.Heads()
|
||||
log.Debug("got stream request", zap.String("objectId", req.ObjectId()), zap.String("peerId", rq.PeerId()), zap.Int("len", s.tree.Len()))
|
||||
producer, err := newResponseProducer(s.spaceId, s.tree, request.Heads, request.SnapshotPath)
|
||||
if err != nil {
|
||||
s.tree.Unlock()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue