Improve connection handling

This commit is contained in:
Ken-Håvard Lieng 2017-07-03 07:35:38 +02:00
parent 9dffb541b9
commit 0a96ebb428
5 changed files with 24 additions and 25 deletions

View file

@ -8,7 +8,6 @@ import (
"sync"
"github.com/jpillora/backoff"
"github.com/matryer/resync"
)
type Client struct {
@ -35,9 +34,7 @@ type Client struct {
quit chan struct{}
reconnect chan struct{}
ready sync.WaitGroup
sendRecv sync.WaitGroup
once resync.Once
lock sync.Mutex
}