We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c883d3b + 8195759 commit ded3d7bCopy full SHA for ded3d7b
protocol/keepalive/keepalive.go
@@ -25,7 +25,7 @@ const (
25
ProtocolId uint16 = 8
26
27
// Time between keep-alive probes, in seconds
28
- DefaultKeepAlivePeroid = 60
+ DefaultKeepAlivePeriod = 60
29
30
// Timeout for keep-alive responses, in seconds
31
DefaultKeepAliveTimeout = 10
@@ -95,7 +95,7 @@ type KeepAliveOptionFunc func(*Config)
95
96
func NewConfig(options ...KeepAliveOptionFunc) Config {
97
c := Config{
98
- Period: DefaultKeepAlivePeroid * time.Second,
+ Period: DefaultKeepAlivePeriod * time.Second,
99
Timeout: DefaultKeepAliveTimeout * time.Second,
100
}
101
// Apply provided options functions
0 commit comments