File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -37,21 +37,21 @@ const (
37
37
)
38
38
39
39
type heartbeatDuration struct {
40
- value time.Duration
40
+ value time.Duration
41
41
hasValue bool
42
42
}
43
43
44
44
func newHeartbeatDuration (v time.Duration ) heartbeatDuration {
45
45
return heartbeatDuration {
46
- value : v ,
46
+ value : v ,
47
47
hasValue : true ,
48
48
}
49
49
}
50
50
51
51
func newHeartbeatDurationFromSeconds (s int ) heartbeatDuration {
52
52
v := time .Duration (s ) * time .Second
53
53
return heartbeatDuration {
54
- value : v ,
54
+ value : v ,
55
55
hasValue : true ,
56
56
}
57
57
}
@@ -69,8 +69,8 @@ type Config struct {
69
69
// bindings on the server. Dial sets this to the path parsed from the URL.
70
70
Vhost string
71
71
72
- ChannelMax uint16 // 0 max channels means 2^16 - 1
73
- FrameSize int // 0 max bytes means unlimited
72
+ ChannelMax uint16 // 0 max channels means 2^16 - 1
73
+ FrameSize int // 0 max bytes means unlimited
74
74
Heartbeat heartbeatDuration // less than 1s uses the server's interval
75
75
76
76
// TLSClientConfig specifies the client configuration of the TLS connection
You can’t perform that action at this time.
0 commit comments