Bump version, add RTT to StatsZ

Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
Derek Collison
2018-12-06 11:46:14 -08:00
parent 18bca5603f
commit ef5764eea0
2 changed files with 4 additions and 5 deletions

View File

@@ -40,7 +40,7 @@ var (
const (
// VERSION is the current version for the server.
VERSION = "2.0.0-alpha"
VERSION = "2.0.0-beta.1"
// PROTO is the currently supported protocol.
// 0 was the original

View File

@@ -115,6 +115,7 @@ type ClientInfo struct {
Name string `json:"name,omitempty"`
Lang string `json:"lang,omitempty"`
Version string `json:"ver,omitempty"`
RTT string `json:"rtt,omitempty"`
Stop *time.Time `json:"stop,omitempty"`
}
@@ -187,10 +188,7 @@ func (s *Server) internalSendLoop(wg *sync.WaitGroup) {
seqp := &s.sys.seq
var cluster string
if s.gateway.enabled {
gw := s.gateway
gw.RLock()
cluster = gw.name
gw.RUnlock()
cluster = s.getGatewayName()
}
s.mu.Unlock()
@@ -728,6 +726,7 @@ func (s *Server) accountDisconnectEvent(c *client, now time.Time, reason string)
Name: c.opts.Name,
Lang: c.opts.Lang,
Version: c.opts.Version,
RTT: c.getRTT(),
},
Sent: DataStats{
Msgs: c.inMsgs,