Skip to content

Commit

Permalink
Merge pull request #429 from blinklabs-io/fix/handshake-period-typo
Browse files Browse the repository at this point in the history
fix: typo in handshake protocol constant
  • Loading branch information
agaffney authored Nov 25, 2023
2 parents c883d3b + 8195759 commit ded3d7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protocol/keepalive/keepalive.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const (
ProtocolId uint16 = 8

// Time between keep-alive probes, in seconds
DefaultKeepAlivePeroid = 60
DefaultKeepAlivePeriod = 60

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

func NewConfig(options ...KeepAliveOptionFunc) Config {
c := Config{
Period: DefaultKeepAlivePeroid * time.Second,
Period: DefaultKeepAlivePeriod * time.Second,
Timeout: DefaultKeepAliveTimeout * time.Second,
}
// Apply provided options functions
Expand Down

0 comments on commit ded3d7b

Please sign in to comment.