Skip to content

Commit

Permalink
fix kick for tarantool 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
igorcoding committed Oct 25, 2017
1 parent 77d292b commit 5b0601b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .ci/travis-before-install.sh
Expand Up @@ -17,6 +17,7 @@ if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
sudo luarocks install https://raw.githubusercontent.com/tarantool/rocks/gh-pages/queue-scm-1.rockspec

elif [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
brew update
if [[ "${TARANTOOL_VERSION}" == "1_7" ]]; then
brew install tarantool --HEAD
else
Expand Down
2 changes: 2 additions & 0 deletions asynctnt_queue/tube.py
Expand Up @@ -196,6 +196,8 @@ async def kick(self, count):
"""
args = (count,)
res = await self.conn.call(self.__funcs['kick'], args)
if self.conn.version < (1, 7):
return res.body[0][0]
return res.body[0]

def statistics(self):
Expand Down

0 comments on commit 5b0601b

Please sign in to comment.