diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-08-03 12:22:36 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-08-03 12:22:36 +0200 |
| commit | 0a2c27237bb9766589a502bd8c9cea3ccf009d4b (patch) | |
| tree | 94176b57e1b1e04c1d19fed5a7259bdeac32b480 /pkg | |
| parent | cc4f6d0a87c12822e08cf8bdc7eae805fda10479 (diff) | |
pkg/rpctype: ignore SetDeadline error
SetDeadline is not implemented on fuchsia and always fails.
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/rpctype/rpc.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pkg/rpctype/rpc.go b/pkg/rpctype/rpc.go index 417a4f7b8..42cab2969 100644 --- a/pkg/rpctype/rpc.go +++ b/pkg/rpctype/rpc.go @@ -84,9 +84,8 @@ func NewRPCClient(addr string) (*RPCClient, error) { } func (cli *RPCClient) Call(method string, args, reply interface{}) error { - if err := cli.conn.SetDeadline(time.Now().Add(5 * 60 * time.Second)); err != nil { - return err - } + // Note: SetDeadline is not implemented on fuchsia, so don't fail on error. + cli.conn.SetDeadline(time.Now().Add(5 * 60 * time.Second)) defer cli.conn.SetDeadline(time.Time{}) return cli.c.Call(method, args, reply) } |
