~singpolyma/sgx-jmp

da80d0c78906bb02690aab89d57a5dd304fcf2e7 — Stephen Paul Weber 2 years ago d0569f4
Throttle notification processing to prevent starvation
1 files changed, 1 insertions(+), 1 deletions(-)

M sgx_jmp.rb
M sgx_jmp.rb => sgx_jmp.rb +1 -1
@@ 210,7 210,7 @@ def poll_for_notify(db)
			DbNotification.for(notify, customer, repo)
		end
	}.then(&:call).then {
		poll_for_notify(db)
		EM.add_timer(0.5) { poll_for_notify(db) }
	}.catch(&method(:panic))
end