From 05ee3f19123e56ab4d668bc5ee8c0533f12afb8b Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Mon, 4 Nov 2024 17:46:11 +0000 Subject: [PATCH] reword --- README.md | 6 ++++-- cmd/q3rcon/main.go | 3 +-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index bb267d4..55e0257 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,9 @@ func main() { #### `WithLoginTimeout(timeout time.Duration)` -If the server was just started or is currently performing a long operation like map rotating then it's possible to receive empty rcon responses. In which case you'll want to retry login. Use this functional option to set the max timeout for logins, it defaults to 5 seconds. For example: +If the server was just started or is currently performing a long operation like map rotating then it's possible to receive empty rcon responses. In which case you'll want to retry login. Use this functional option to set the max timeout for logins, it defaults to 5 seconds. + +For example: ```go rcon, err := q3rcon.New( @@ -64,7 +66,7 @@ rcon, err := q3rcon.New( #### `WithDefaultTimeout(timeout time.Duration)` -You may want to change the default timeout if some of your responses are getting mixed together (stability can depend on connection to the server). For example, on LAN I can leave the default at 20ms, when connecting remotely I normally increase this to 50ms. +You may want to change the default timeout if some of your responses are getting mixed together (stability can depend on connection to the server). For example, over localhost I can leave the default at 20ms, when connecting remotely I normally increase this to 50ms. For example: diff --git a/cmd/q3rcon/main.go b/cmd/q3rcon/main.go index 19dd0cc..61a5a2f 100644 --- a/cmd/q3rcon/main.go +++ b/cmd/q3rcon/main.go @@ -68,8 +68,7 @@ func main() { } func connectRcon(host string, port int, password string) (*q3rcon.Rcon, error) { - rcon, err := q3rcon.New( - host, port, password) + rcon, err := q3rcon.New(host, port, password) if err != nil { return nil, err }