删除所有超时
This commit is contained in:
parent
0c64d3e838
commit
f6d4097018
4
tap.go
4
tap.go
|
@ -55,9 +55,7 @@ func (cli *RPCClient) run() {
|
||||||
|
|
||||||
c := gen.NewFrameServiceClient(cli.conn)
|
c := gen.NewFrameServiceClient(cli.conn)
|
||||||
|
|
||||||
ctx, cancel := context.WithTimeout(context.Background(), time.Second*10)
|
stream, err := c.SendFrames(context.Background())
|
||||||
defer cancel()
|
|
||||||
stream, err := c.SendFrames(ctx)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Panic(err)
|
log.Panic(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user