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

Add send request sync

This commit is contained in:
mcrakhman 2024-06-09 15:03:28 +02:00
parent febbdfa09b
commit 51f740cb90
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B
3 changed files with 33 additions and 1 deletions

View file

@ -2,6 +2,8 @@ package synctest
import (
"context"
"errors"
"io"
"storj.io/drpc"
@ -25,6 +27,10 @@ func (c *CounterRequestSender) SendStreamRequest(ctx context.Context, rq syncdep
if err != nil {
return err
}
return receive(stream)
err = receive(stream)
if errors.Is(err, io.EOF) {
return nil
}
return err
})
}