Skip to content

Commit

Permalink
Merge PR snabbco#50 (lib.ptree: increment engine.configs) into master
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneia committed Oct 8, 2018
2 parents f08ed4b + 18f34c8 commit d634a3f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/ptree/worker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ function Worker:commit_pending_actions()
table.insert(to_apply, action)
end
end
if #to_apply > 0 then engine.apply_config_actions(to_apply) end
if #to_apply > 0 then
engine.apply_config_actions(to_apply)
counter.add(engine.configs)
end
self.pending_actions = {}
if should_flush then require('jit').flush() end
end
Expand Down

0 comments on commit d634a3f

Please sign in to comment.