Skip to content

Commit 33a57c9

Browse files
author
Eugene Leonovich
committed
Tweak queues.lua example in README.md
1 parent 945b8c1 commit 33a57c9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

README.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@ box.cfg {}
3131
queue = require('queue')
3232
queue.start()
3333

34-
local tube_name = 'foobar'
35-
if not queue.tube[tube_name] then
36-
queue.create_tube(tube_name, 'fifottl')
37-
end
34+
queue.create_tube('foobar', 'fifottl', { if_not_exists=true })
3835
```
3936

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

0 commit comments

Comments
 (0)