Skip to content

Commit a51e5f8

Browse files
committed
doc: now we use init_by_lua_block {} instead of init_by_lua; also force a full GC cycle after loading resty.core.
1 parent d63ce88 commit a51e5f8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.markdown

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ Synopsis
4949
# are using the OpenResty bundle 1.4.3.9+.
5050
lua_package_path "/path/to/lua-resty-core/lib/?.lua;;";
5151
52-
init_by_lua '
52+
init_by_lua_block {
5353
require "resty.core"
54-
';
54+
collectgarbage("collect") -- just to collect any garbage
55+
}
5556
5657
...
5758
}

0 commit comments

Comments
 (0)