Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ client := fiber.NewClientWithConfig(endpoint, apiKey, config)
- `SetReadBufferSize(size int)`: Sets the gRPC read buffer size
- `SetConnWindowSize(size int32)`: Sets the gRPC connection window size
- `SetWindowSize(size int32)`: Sets the gRPC window size
- `SetIdleTimeout(timeout time.Duration)`: Sets a timeout after which idle connections will be restarted automatically. Set to 0 to disable (default).
- `SetIdleTimeout(timeout time.Duration)`: Sets a timeout after which idle connections will be restarted automatically. Set to 0 to disable. 10s is default value.
- `SetHealthCheckInterval(interval time.Duration)`: Sets the interval for health checks. Set to 0 to disable (default).
- `SetLogLevel(level string)`: Sets the log level. Default is `panic` (which never logs).

Expand Down
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func NewConfig() *ClientConfig {
readBufferSize: 1024 * 8,
connWindowSize: 1024 * 512,
windowSize: 1024 * 256,
idleTimeout: 0,
idleTimeout: 10 * time.Second,
hcInterval: 10 * time.Second,
logLevel: "fatal",
}
Expand Down