mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-08 05:57:03 +09:00
Update tryclose with ttl
This commit is contained in:
parent
82828cba6f
commit
307b741dc7
13 changed files with 33 additions and 32 deletions
|
@ -51,7 +51,7 @@ func (p pushSpaceRequestMatcher) String() string {
|
|||
|
||||
type mockPeer struct{}
|
||||
|
||||
func (m mockPeer) TryClose() (res bool, err error) {
|
||||
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