Skip to content
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.

Commit

Permalink
finish connection after get frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
cbarraford committed Jul 27, 2014
1 parent 631d920 commit d5051bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lua/src/lib/redis.lua
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ M.fetch_frontend = function(self, max_path_length)
local key = keys[_index_0]
local resp, err = red:get('frontend:' .. key)
if type(resp) == 'string' then
M.finish(red)
return {
frontend_key = key,
backend_key = resp
Expand Down
1 change: 1 addition & 0 deletions src/lib/redis.moon
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ M.fetch_frontend = (@, max_path_length=3) ->
for key in *keys do
resp, err = red\get('frontend:' .. key)
if type(resp) == 'string'
M.finish(red)
return { frontend_key: key, backend_key: resp }
M.finish(red)
library.log_err("Frontend Cache miss")
Expand Down

0 comments on commit d5051bb

Please sign in to comment.