Improve connection handling
This commit is contained in:
parent
9dffb541b9
commit
0a96ebb428
5 changed files with 24 additions and 25 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue