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 }