Skip to content

Commit bd195e8

Browse files
committed
Fix shmem local scope variable in tile.lua
1 parent 737c2fc commit bd195e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

osm/tile.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ local setmetatable = setmetatable
4242
local error = error
4343

4444
local osm_data = require 'osm.data'
45+
local shmem = nil
4546
if ngx ~= nil then
46-
local shmem = ngx.shared.osm_last_update
47+
shmem = ngx.shared.osm_last_update
4748
end
4849

4950
local _M = { _VERSION = '0.12' }

0 commit comments

Comments
 (0)