bungle / lua-resty-session

Session library for OpenResty – flexible and secure
BSD 2-Clause "Simplified" License
319 stars 111 forks source link

DSHM useless call to setmetadata when pool is specified #171

Closed oldium closed 1 year ago

oldium commented 1 year ago

DSHM constructor calls setmetadata when pool value is specified but ignores the result.

See https://github.com/bungle/lua-resty-session/blob/8b5f8752f3046396c414c5b97850e784c07e1641/lib/resty/session/dshm.lua#L311-L345

bungle commented 1 year ago

good catch! thanks!