add a comment for PingPongLatencyTimer [ci skip]

This commit is contained in:
Anton Kaliaev 2017-08-08 13:20:58 -04:00
parent c14b39da5f
commit 23a87304cc
No known key found for this signature in database
GPG Key ID: 7B6881D965918214
1 changed files with 3 additions and 1 deletions

View File

@ -19,7 +19,7 @@ import (
)
const (
// Time allowed to write a message to the peer.
// Time allowed to write a message to the server.
writeWait = 10 * time.Second
// Maximum reconnect attempts
@ -40,6 +40,8 @@ type WSClient struct {
Endpoint string // /websocket/url/endpoint
Dialer func(string, string) (net.Conn, error)
// Time between sending a ping and receiving a pong. See
// https://godoc.org/github.com/rcrowley/go-metrics#Timer.
PingPongLatencyTimer metrics.Timer
// user facing channels, closed only when the client is being stopped.