1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-09 09:35:03 +09:00

Add requests and more stuff

This commit is contained in:
mcrakhman 2024-06-15 14:46:38 +02:00
parent ac08c01120
commit 4efac4a239
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B
34 changed files with 263 additions and 1058 deletions

View file

@ -203,6 +203,9 @@ func (s *streamPool) addStream(drpcStream drpc.Stream, tags ...string) (*stream,
stats: newStreamStat(peerId),
}
st.queue = s.syncDelegate.GetQueue(peerId)
if st.queue == nil {
return nil, fmt.Errorf("no queue for peer %s", peerId)
}
s.streams[streamId] = st
s.streamIdsByPeer[peerId] = append(s.streamIdsByPeer[peerId], streamId)
for _, tag := range tags {