1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-12 02:30:41 +09:00

add requestId to separate request/reply flows

This commit is contained in:
Sergey Cherepanov 2023-01-27 14:37:06 +03:00 committed by Mikhail Iudin
parent a2765a5233
commit f95123fc43
No known key found for this signature in database
GPG key ID: FAAAA8BAABDFF1C0
4 changed files with 132 additions and 80 deletions

View file

@ -41,7 +41,7 @@ func (s *syncTreeHandler) HandleMessage(ctx context.Context, senderId string, ms
s.syncStatus.HeadsReceive(senderId, msg.ObjectId, treechangeproto.GetHeads(unmarshalled))
queueFull := s.queue.AddMessage(senderId, unmarshalled, msg.ReplyId)
queueFull := s.queue.AddMessage(senderId, unmarshalled, msg.RequestId)
if queueFull {
return
}