diff --git a/CHANGELOG.md b/CHANGELOG.md index ecad566..d784eb2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ Changelog ========= All notable changes to this project will be documented in this file. +v1.1.4-alpha +------------- + +### Changed + +- Added buffer to `Ws` sender channel + v1.1.3-alpha ------------- diff --git a/README.md b/README.md index 631f3ea..f8c09b2 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Installation ----------------- ```bash -go get github.com/amir-the-h/okex@v1.1.3-alpha +go get github.com/amir-the-h/okex@v1.1.4-alpha ``` Usage diff --git a/api/ws/client.go b/api/ws/client.go index 028e9e7..34178bd 100644 --- a/api/ws/client.go +++ b/api/ws/client.go @@ -61,7 +61,7 @@ func NewClient(ctx context.Context, apiKey, secretKey, passphrase string, url ma ctx: ctx, Cancel: cancel, url: url, - sendChan: map[bool]chan []byte{true: make(chan []byte), false: make(chan []byte)}, + sendChan: map[bool]chan []byte{true: make(chan []byte, 3), false: make(chan []byte, 3)}, DoneChan: make(chan interface{}), StructuredEventChan: make(chan interface{}), RawEventChan: make(chan *events.Basic),