1
0
Fork 0
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:
mcrakhman 2024-07-05 01:29:31 +02:00
parent 68a7ad4738
commit 6dac7dcda4
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B

View file

@ -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()