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:
parent
ed0a751d15
commit
39a8c59f83
10 changed files with 74 additions and 17 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue