Skip to content

Commit 5b0601b

Browse files
committed
fix kick for tarantool 1.6
1 parent 77d292b commit 5b0601b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.ci/travis-before-install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
1717
sudo luarocks install https://raw.githubusercontent.com/tarantool/rocks/gh-pages/queue-scm-1.rockspec
1818

1919
elif [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
20+
brew update
2021
if [[ "${TARANTOOL_VERSION}" == "1_7" ]]; then
2122
brew install tarantool --HEAD
2223
else

asynctnt_queue/tube.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ async def kick(self, count):
196196
"""
197197
args = (count,)
198198
res = await self.conn.call(self.__funcs['kick'], args)
199+
if self.conn.version < (1, 7):
200+
return res.body[0][0]
199201
return res.body[0]
200202

201203
def statistics(self):

0 commit comments

Comments
 (0)