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

stream ctx + peer addr

This commit is contained in:
Sergey Cherepanov 2023-05-04 17:38:34 +02:00 committed by Mikhail Iudin
parent ed0a751d15
commit 39a8c59f83
No known key found for this signature in database
GPG key ID: FAAAA8BAABDFF1C0
10 changed files with 74 additions and 17 deletions

View file

@ -51,6 +51,10 @@ func (p pushSpaceRequestMatcher) String() string {
type mockPeer struct{}
func (m mockPeer) Addr() string {
return ""
}
func (m mockPeer) TryClose(objectTTL time.Duration) (res bool, err error) {
return true, m.Close()
}