Added WebHook Test Converage + reduces server complexity

This commit is contained in:
joeybloggs
2015-10-30 10:47:14 -04:00
parent d6829a3168
commit 92184e3d56
4 changed files with 216 additions and 41 deletions
-3
View File
@@ -225,9 +225,6 @@ func (hook Webhook) ParsePayload(w http.ResponseWriter, r *http.Request) {
func (hook Webhook) runProcessPayloadFunc(fn webhooks.ProcessPayloadFunc, results interface{}) {
go func(fn webhooks.ProcessPayloadFunc, results interface{}) {
// put in recovery here!
fn(results)
}(fn, results)
}