Skip to content

Commit

Permalink
Tweak queues.lua example in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Leonovich committed Jun 30, 2016
1 parent 945b8c1 commit 33a57c9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ box.cfg {}
queue = require('queue')
queue.start()

local tube_name = 'foobar'
if not queue.tube[tube_name] then
queue.create_tube(tube_name, 'fifottl')
end
queue.create_tube('foobar', 'fifottl', { if_not_exists=true })
```

> You can read more about the box configuration in the official [Tarantool documentation](http://tarantool.org/doc/book/configuration/index.html#initialization-file).
Expand Down

0 comments on commit 33a57c9

Please sign in to comment.