From 78b133a3abb15a3e278e9463becf1c6f56da3a32 Mon Sep 17 00:00:00 2001 From: Amir Date: Mon, 27 Mar 2023 22:00:14 +0300 Subject: [PATCH] Release: v.1.1.4-alpha --- CHANGELOG.md | 7 +++++++ README.md | 2 +- api/ws/client.go | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) 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),