From 8195759f14af616a8c76c4bded1d4b2d82ecc15e Mon Sep 17 00:00:00 2001 From: Aurora Gaffney Date: Fri, 24 Nov 2023 19:55:56 -0600 Subject: [PATCH] fix: typo in handshake protocol constant --- protocol/keepalive/keepalive.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol/keepalive/keepalive.go b/protocol/keepalive/keepalive.go index ccb410b0..b418c015 100644 --- a/protocol/keepalive/keepalive.go +++ b/protocol/keepalive/keepalive.go @@ -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 @@ -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