mirror of
https://github.com/injoyai/tdx.git
synced 2025-11-26 21:25:35 +08:00
去除超时时间参数
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
func Test(f func(c *tdx.Client)) {
|
||||
|
||||
//重连方式1,优点,同一个客户端指针
|
||||
c, err := tdx.DialWith(tdx.NewHostDial(tdx.Hosts, 0), tdx.WithDebug())
|
||||
c, err := tdx.DialWith(tdx.NewHostDial(tdx.Hosts), tdx.WithDebug())
|
||||
logs.PanicErr(err)
|
||||
f(c)
|
||||
<-c.Done()
|
||||
|
||||
Reference in New Issue
Block a user