From 33a57c90add9e42684e673852a71661eece8524e Mon Sep 17 00:00:00 2001 From: Eugene Leonovich Date: Thu, 30 Jun 2016 15:08:59 +0200 Subject: [PATCH] Tweak queues.lua example in README.md --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index 7dd8aae..fd6f2fc 100644 --- a/README.md +++ b/README.md @@ -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).