openfaas / nats-queue-worker

Queue-worker for OpenFaaS with NATS Streaming
https://docs.openfaas.com/reference/async/
MIT License
129 stars 59 forks source link

fix bad use of http.Response #68

Closed chennqqi closed 5 years ago

chennqqi commented 5 years ago

Signed-off-by: chennqqi chennqqi@qq.com

fix bad use of http.Response

Description

fix bad use of http.Response http.Response arguments of client.Do(request) only can be call if err == nil

Motivation and Context

How Has This Been Tested?

tested add panic function into faas function then do a sync call to check if nats-worker crash

Types of changes

Checklist: