diff --git a/connection.go b/connection.go index 4d30609..caf38d3 100644 --- a/connection.go +++ b/connection.go @@ -37,13 +37,13 @@ const ( ) type heartbeatDuration struct { - value time.Duration + value time.Duration hasValue bool } func newHeartbeatDuration(v time.Duration) heartbeatDuration { return heartbeatDuration{ - value: v, + value: v, hasValue: true, } } @@ -51,7 +51,7 @@ func newHeartbeatDuration(v time.Duration) heartbeatDuration { func newHeartbeatDurationFromSeconds(s int) heartbeatDuration { v := time.Duration(s) * time.Second return heartbeatDuration{ - value: v, + value: v, hasValue: true, } } @@ -69,8 +69,8 @@ type Config struct { // bindings on the server. Dial sets this to the path parsed from the URL. Vhost string - ChannelMax uint16 // 0 max channels means 2^16 - 1 - FrameSize int // 0 max bytes means unlimited + ChannelMax uint16 // 0 max channels means 2^16 - 1 + FrameSize int // 0 max bytes means unlimited Heartbeat heartbeatDuration // less than 1s uses the server's interval // TLSClientConfig specifies the client configuration of the TLS connection