Prepare deadline interface

This commit is contained in:
世界
2023-04-19 21:48:54 +08:00
parent a5322850b3
commit 4382093868
14 changed files with 86 additions and 36 deletions

View File

@@ -81,6 +81,10 @@ func (c *GRPCConn) SetWriteDeadline(t time.Time) error {
return os.ErrInvalid
}
func (c *GRPCConn) NeedAdditionalReadDeadline() bool {
return true
}
func (c *GRPCConn) Upstream() any {
return c.GunService
}