Browse Source

[tm-monitor] use BaseService.Reset method

pull/1943/head
Anton Kaliaev 8 years ago
parent
commit
9442a069a3
No known key found for this signature in database GPG Key ID: 7B6881D965918214
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      tm-monitor/eventmeter/eventmeter.go

+ 4
- 1
tm-monitor/eventmeter/eventmeter.go View File

@ -105,7 +105,6 @@ func NewEventMeter(addr string, unmarshalEvent EventUnmarshalFunc) *EventMeter {
timer: metrics.NewTimer(),
receivedPong: true,
unmarshalEvent: unmarshalEvent,
quit: make(chan struct{}),
logger: log.NewNopLogger(),
}
return em
@ -121,6 +120,10 @@ func (em *EventMeter) String() string {
}
func (em *EventMeter) Start() error {
if _, err := em.wsc.Reset(); err != nil {
return err
}
if _, err := em.wsc.Start(); err != nil {
return err
}


Loading…
Cancel
Save