Skip to content

Commit

Permalink
travis, doc: now we require lua-resty-core as a dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
agentzh committed Jun 5, 2018
1 parent 6899e7b commit 6e9e13e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -38,6 +38,7 @@ install:
- sudo cpanm --notest Test::Nginx > build.log 2>&1 || (cat build.log && exit 1)
- wget http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz
- git clone https://github.com/openresty/openresty.git ../openresty
- git clone https://github.com/openresty/lua-resty-core.git ../lua-resty-core
- git clone https://github.com/openresty/nginx-devel-utils.git
- git clone https://github.com/simpl/ngx_devel_kit.git ../ndk-nginx-module
- git clone https://github.com/openresty/lua-nginx-module.git ../lua-nginx-module
Expand Down
4 changes: 3 additions & 1 deletion README.markdown
Expand Up @@ -43,7 +43,7 @@ Synopsis
http {
# you do not need the following line if you are using the
# OpenResty bundle:
lua_package_path "/path/to/lua-resty-lock/lib/?.lua;;";
lua_package_path "/path/to/lua-resty-core/lib/?.lua;/path/to/lua-resty-lock/lib/?.lua;;";

lua_shared_dict my_locks 100k;

Expand Down Expand Up @@ -152,6 +152,8 @@ Common errors for this method call is

Other possible errors are from ngx_lua's shared dictionary API.

It is required to create different `resty.lock` instances for multiple simultaneous locks (i.e., those around different keys).

[Back to TOC](#table-of-contents)

unlock
Expand Down

0 comments on commit 6e9e13e

Please sign in to comment.