Skip to content

Commit ded3d7b

Browse files
authored
Merge pull request #429 from blinklabs-io/fix/handshake-period-typo
fix: typo in handshake protocol constant
2 parents c883d3b + 8195759 commit ded3d7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

protocol/keepalive/keepalive.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const (
2525
ProtocolId uint16 = 8
2626

2727
// Time between keep-alive probes, in seconds
28-
DefaultKeepAlivePeroid = 60
28+
DefaultKeepAlivePeriod = 60
2929

3030
// Timeout for keep-alive responses, in seconds
3131
DefaultKeepAliveTimeout = 10
@@ -95,7 +95,7 @@ type KeepAliveOptionFunc func(*Config)
9595

9696
func NewConfig(options ...KeepAliveOptionFunc) Config {
9797
c := Config{
98-
Period: DefaultKeepAlivePeroid * time.Second,
98+
Period: DefaultKeepAlivePeriod * time.Second,
9999
Timeout: DefaultKeepAliveTimeout * time.Second,
100100
}
101101
// Apply provided options functions

0 commit comments

Comments
 (0)