Update /bot for 1.18

This commit is contained in:
Tnze
2021-12-11 02:40:41 +08:00
parent a70aaa81d6
commit 97b706f6eb
10 changed files with 57 additions and 30 deletions

View File

@ -28,7 +28,7 @@ func PingAndList(addr string) ([]byte, time.Duration, error) {
return pingAndList(addr, conn)
}
// PingAndListTimeout PingAndLIstTimeout is the version of PingAndList with max request time.
// PingAndListTimeout is the version of PingAndList with max request time.
func PingAndListTimeout(addr string, timeout time.Duration) ([]byte, time.Duration, error) {
deadLine := time.Now().Add(timeout)