Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebakken committed Mar 9, 2024
1 parent 215f424 commit 9b20c40
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,21 @@ 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,
}
}

func newHeartbeatDurationFromSeconds(s int) heartbeatDuration {
v := time.Duration(s) * time.Second
return heartbeatDuration{
value: v,
value: v,
hasValue: true,
}
}
Expand All @@ -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
Expand Down

0 comments on commit 9b20c40

Please sign in to comment.